App open ads are a special ad format intended for publishers wishing to monetize their app load screens. App open ads can be closed at any time, and are designed to be shown when your users bring your app to the foreground.

Load Ad

The ad is loaded and displayed by the SDK system, but additional configurations are required.

Add Activities Allowed to open resume ad

To display open resume ad, you need adds an activity to the list of activities that are allowed to show resume ads. Reference

  com.ikame.android.sdk.IKSdkController#addActivityEnableShowResumeAd
  

Function Definition

  fun addActivityEnableShowResumeAd(vararg activity: Class<*>)
  

Sample Usage

Remove Activities Allowed to open resume ad

Reference

  com.ikame.android.sdk.IKSdkController#removeActivityEnableShowResumeAd
  

Function Definition

  fun removeActivityEnableShowResumeAd(vararg activity: Class<*>)
  

Sample Usage

Enable System to Show Resume Open Ad

Enables or disables the display of resume ads in the SDK. If set to true, the SDK will automatically show a resume ad. If set to false, the resume ad feature will be disabled.

Callbacks for Resumed Open Ad

The IKAppOpenAdCallback handles events related to displaying your Resumed Open Ad

Set callback

Reference

  com.ikame.android.sdk.IKSdkController#setAppOpenAdsCallback
  

Function Definition

  fun setAppOpenAdsCallback(callback: IKAppOpenAdCallback)
  

Sample Usage

Remove all callback

Reference

  com.ikame.android.sdk.IKSdkController#removeAppOpenAdsCallback
  

Function Definition

  fun removeAppOpenAdsCallback()
  

Sample Usage

Interfaces

Reference IKAppOpenAdCallback