Airship

object Airship(source)

The Airship singleton provides access to all of the Airship services.

Types

Link copied to clipboard
fun interface OnReadyCallback

Properties

Link copied to clipboard

Broadcast that is sent when Airship is finished taking off.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The shared Analytics instance.

Link copied to clipboard

The application instance.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The shared Contact instance.

Link copied to clipboard

The shared deep link listener.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

true if the SDK is fully initialized and ready, false otherwise.

Link copied to clipboard

true if the SDK is either initialized or initializing, false otherwise.

Link copied to clipboard

true if takeOff has been called but the SDK is still initializing, false otherwise.

Link copied to clipboard
Link copied to clipboard

If true, a stack trace will be logged when takeOff is called to help diagnose issues with multiple takeOff calls. Defaults to false.

Link copied to clipboard
Link copied to clipboard

The detected platform.

Link copied to clipboard
Link copied to clipboard

The shared PushManager instance.

Link copied to clipboard
val runtimeConfig: AirshipRuntimeConfig

The runtime configuration.

Link copied to clipboard

The current status of the Airship SDK.

Link copied to clipboard
val statusFlow: StateFlow<AirshipStatus>

The current status of the Airship SDK.

Link copied to clipboard
Link copied to clipboard

The current Airship SDK version.

Functions

Link copied to clipboard

Processes a deep link.

Link copied to clipboard
fun onReady(onReady: Airship.() -> Unit)

Adds a callback to be invoked when the SDK is ready. The callback will always be dispatched on Dispatchers.Main.

Link copied to clipboard
fun takeOff(application: Application, onReadyCallback: Airship.OnReadyCallback)
fun takeOff(application: Application, options: AirshipConfigOptions? = null, onReady: Airship.() -> Unit? = null)

Initializes the Airship SDK.

Link copied to clipboard
suspend fun waitForReady(duration: Duration? = null): Boolean

Waits for the SDK to be ready.

Link copied to clipboard

Waits for the SDK to be ready. This method will block the calling thread.