Class Index com.ikame.android.sdk.billing.IKBilling

Define IAP Constants

Initialize SDK Billing

This function configures and enables in-app purchase (IAP) features within the application. It is usually declared in the Application class and must be updated whenever there are changes to IAP functionalities, such as enabling or disabling features, or modifying purchase packages.

  fun initBilling(context: Context, provider: SDKIAPProductIDProvider?)
  

The IKBillingProvider interface extends the SDKIAPProductIDProvider interface, allowing you to use both interfaces interchangeably. This enables access to the methods defined in both interfaces while maintaining a clear and flexible structure for managing in-app purchases (IAP) and product IDs.

  interface IKBillingProvider : SDKIAPProductIDProvider {

    fun licenseKey(): String {
        return IKSdkConstants.LICENSE_KEY
    }
}
  
Example