public static void unregisterPurchaseListener(IPurchaseListener listener) { if (m_purchaseListeners.Contains(listener)) { m_purchaseListeners.Remove(listener); } }
public static void registerPurchaseListener(IPurchaseListener listener) { if (!m_purchaseListeners.Contains(listener)) { m_purchaseListeners.Add(listener); } }
public void SetListener(IPurchaseListener listener) // IDevicePurchase { this.listener = listener; if (inAppBillingServiceConnection != null) { if ((inAppBillingServiceConnection.Connected == true) && (inAppBillingServiceConnection.BillingHandler != null)) { NotifyListener(PurchaseStatus.Connected); } } }
public void SetListener(IPurchaseListener listener) // IDevicePurchase { purchaseProvider.SetListener(listener); }