initialize

fun initialize(context: Context, adswizzSDKConfig: AdswizzSDKConfig? = null, completion: () -> Unit? = null)

SDK initialization. The recommended way to do this is in the onCreate of your application.

Parameters

context

: application context

adswizzSDKConfig

: optional AdswizzSDKConfig that contains installationId and playerId.

completion

: optional completion callback which signals when AdswizzSDK is fully initialised.

If adswizzSDKConfig is used to provide installationId and playerId at runtime. They can be set also in manifest and they are mandatory to SDK initialization.