requestSdk

@JvmStatic
fun requestSdk(listener: WhenReadyListener)

An asynchronous request for an instance of PushFeature.

This method provides an asynchronous way to get a PushFeature instance. If initialization has already completed successfully, the listener will be called immediately. If initialization is still in progress, the listener will be called when initialization completes.

Note: If initialization completes with a failed status, the listener will not be called, and the current list of WhenReadyListener listeners will be cleared.

Parameters

listener

Callback to be called after initialization has completed successfully

See also

#unregisterWhenReadyListener(WhenReadyListener)


@JvmStatic
fun requestSdk(looper: Looper?, listener: WhenReadyListener)

An asynchronous request for an instance of PushFeature.

This method provides an asynchronous way to get a PushFeature instance with a specific Looper for the callback. If initialization has already completed successfully, the listener will be called immediately. If initialization is still in progress, the listener will be called when initialization completes.

Note: If initialization completes with a failed status, the listener will not be called, and the current list of WhenReadyListener listeners will be cleared.

Parameters

looper

Used for the callback. If null, the current thread's Looper or main Looper will be used

listener

Callback to be called after initialization has completed successfully

See also

#unregisterWhenReadyListener(WhenReadyListener)