takeOff

Initializes the Airship SDK.

Called manually during Application.onCreate or automatically using Autopilot.

Parameters

application

The application instance.

onReadyCallback

Called on a background thread. The work done in this callback should be as quick as possible as it will block Airship from being used including Airship.waitForReady() and other onReady callbacks from executing.


Initializes the Airship SDK.

Called manually during Application.onCreate or automatically using Autopilot.

Parameters

application

The application instance.

options

The Airship config options.

onReadyCallback

Called on a background thread. The work done in this callback should be as quick as possible as it will block Airship from being used including Airship.waitForReady() and other onReady callbacks from executing.


fun takeOff(application: Application, options: AirshipConfigOptions? = null, onReady: Airship.() -> Unit? = null)(source)

Initializes the Airship SDK.

Called manually during Application.onCreate or automatically using Autopilot.

Parameters

application

The application instance.

options

The Airship config options.

onReady

Called on a background thread. The work done in this callback should be as quick as possible as it will block Airship from being used including Airship.waitForReady() and other onReady callbacks from executing.