initialize

@RequiresPermission(value = "android.permission.INTERNET")
actual fun initialize(context: Any?)

Initializes the Mobile Ads SDK.

Parameters

context

The context to use for initialization. Must be an Activity on Android.

expect fun initialize(context: Any?)

Initializes the Mobile Ads SDK. This method should be called on the main thread as early as possible, ideally on app launch.

Parameters

context

A platform-specific context. For Android, this must be an Activity or Context. For iOS, this parameter is not used and can be null.

actual fun initialize(context: Any?)