takeOff

open fun takeOff(@NonNull application: Application)

Take off with config loaded from the airshipconfig.properties file in the assets directory. See applyDefaultProperties.

Parameters

application

The application (required)


open fun takeOff(@NonNull application: Application, @Nullable readyCallback: UAirship.OnReadyCallback)

Take off with a callback to perform airship configuration after takeoff. The ready callback will be executed before the UAirship instance is returned by any of the shared methods. The config will be loaded from airshipconfig.properties file in the assets directory. See applyDefaultProperties.

Parameters

application

The application (required)

readyCallback

Optional ready callback. The callback will be triggered on a background thread that performs takeOff. If the callback takes longer than ~5 seconds it could cause ANRs within the application.


open fun takeOff(@NonNull application: Application, @Nullable options: AirshipConfigOptions)

Take off with defined AirshipConfigOptions.

Parameters

application

The application (required)

options

The launch options. If not null, the options passed in here will override the options loaded from the .properties file. This parameter is useful for specifying options at runtime.


Take off with a callback to perform airship configuration after takeoff. The ready callback will be executed before the UAirship instance is returned by any of the shared methods.

Parameters

application

The application (required)

options

The launch options. If not null, the options passed in here will override the options loaded from the .properties file. This parameter is useful for specifying options at runtime.

readyCallback

Optional ready callback. The callback will be triggered on a background thread that performs takeOff. If the callback takes longer than ~5 seconds it could cause ANRs within the application.