initialize

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

Deprecated

The `context` argument is no longer required as of v1.1.0-beta01

Initializes the Mobile Ads SDK.

Parameters

context

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

@MainThread
expect fun initialize(context: Any?)

Deprecated

The `context` argument is no longer required as of v1.1.0-beta01

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.

@MainThread
actual fun initialize(context: Any?)

Deprecated

The `context` argument is no longer required as of v1.1.0-beta01