UAirship

open class UAirship

UAirship manages the shared state for all Airship services. UAirship.takeOff() should be called to initialize the class during Application.onCreate() or by using Autopilot.

Types

Link copied to clipboard
interface OnReadyCallback
Callback interface used to notify app when UAirship is ready.
Link copied to clipboard
annotation class Platform

Properties

Link copied to clipboard
val ACTION_AIRSHIP_READY: String = "com.urbanairship.AIRSHIP_READY"
Broadcast that is sent when UAirship is finished taking off.
Link copied to clipboard
Link copied to clipboard
Amazon platform type.
Link copied to clipboard
Link copied to clipboard
Android platform type.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
@get:NonNull
open val contact: Contact
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val EXTRA_CHANNEL_ID_KEY: String = "channel_id"
Link copied to clipboard
val EXTRA_PAYLOAD_VERSION_KEY: String = "payload_version"
Link copied to clipboard
open val imageLoader: ImageLoader
Link copied to clipboard
open val isFlying: Boolean
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val localeManager: LocaleManager
Link copied to clipboard
open val locationClient: AirshipLocationClient
Link copied to clipboard
Flag to enable printing take off's stacktrace.
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open val remoteData: RemoteData
Link copied to clipboard
Link copied to clipboard
Unknown platform.
Link copied to clipboard

Functions

Link copied to clipboard
open fun deepLink(@NonNull deepLink: String): Boolean
Deep links.
Link copied to clipboard
open fun getAppIcon(): Int
Returns the drawable ID for the current Application's icon.
Link copied to clipboard
Returns the current Application's ApplicationInfo.
Link copied to clipboard
Returns the current Application's context.
Link copied to clipboard
open fun getAppName(): String
Returns the current Application's name.
Link copied to clipboard
open fun getAppVersion(): Long
Returns the current Application version.
Link copied to clipboard
open fun getLocale(): Locale
Get the locale stored in UAirship.
Link copied to clipboard
Returns the Application's PackageInfo
Link copied to clipboard
Returns the Application's package manager.
Link copied to clipboard
Returns the Application's package name.
Link copied to clipboard
open fun getPlatformType(): Int
Returns the platform type.
Link copied to clipboard
Returns the current Airship version.
Link copied to clipboard
open fun setLocaleOverride(@Nullable locale: Locale)
Sets a locale to be stored in UAirship.
Link copied to clipboard
open fun shared(): UAirship
Returns the shared UAirship singleton instance.
Requests the airship instance asynchronously.
Link copied to clipboard
open fun takeOff(@NonNull application: Application)
Take off with config loaded from the airshipconfig.properties file in the assets directory.
open fun takeOff(@NonNull application: Application, @Nullable options: AirshipConfigOptions)
Take off with defined AirshipConfigOptions.
open fun takeOff(@NonNull application: Application, @Nullable readyCallback: UAirship.OnReadyCallback)
Take off with a callback to perform airship configuration after takeoff.