initialize

fun initialize(context: Context?, publishableKey: String? = null)

Initializes the Radar SDK. Call this method from the main thread in Application.onCreate() before calling any other Radar methods.

See also

Parameters

context

The context

publishableKey

Your publishable API key

fun initialize(context: Context?, publishableKey: String? = null, receiver: RadarReceiver? = null)

Initializes the Radar SDK. Call this method from the main thread in Application.onCreate() before calling any other Radar methods.

See also

Parameters

context

The context

publishableKey

Your publishable API key

receiver

An optional receiver for the client-side delivery of events