Builder

Airship config builder.

Constructors

Link copied to clipboard
constructor()

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

The transport types allowed for Push.

Link copied to clipboard

The flag indicating whether the application will use analytics.

Link copied to clipboard

The default app key.

Link copied to clipboard

The default app secret.

Link copied to clipboard

The app store URI for the rate-app action. If not set, the action will generate it using the app's current package name.

Link copied to clipboard

The flag indicating whether or not to launch the launcher activity when a push notification or push notification button is opened and the application intent receiver did not launch an activity.

Link copied to clipboard

The auto pause In-App Automation on launch.

Link copied to clipboard

The background reporting interval in milliseconds.

Link copied to clipboard

The flag indicating whether channel capture feature is enabled or not.

Link copied to clipboard

The Airship channel create option

Link copied to clipboard

The flag indicating whether channel creation delay is enabled or not.

Link copied to clipboard

Used to set a custom push provider for push registration.

Link copied to clipboard

The flag indicating whether data collection needs to be opted in with Airship.setDataCollectionEnabled.

Link copied to clipboard

The application's development app key.

Link copied to clipboard

The application's development app secret.

Link copied to clipboard

The logger level when the application is in debug mode.

Link copied to clipboard

The development log privacy level.

Link copied to clipboard

The default enabled SDK features. See PrivacyManager for more info.

Link copied to clipboard

The flag indicating whether extended broadcasts are enabled or disabled.

Link copied to clipboard

The Firebase app name that is used for FCM. If set, the app name must exist in order for Airship to get registration token. The app should be initialized with Firebase before takeOff, or during onAirshipReady callback.

Link copied to clipboard

The Airship URL used to pull the initial config. This should only be set if you are using custom domains that forward to Airship.

Link copied to clipboard

The flag indicating whether the application is in production or development.

When enabled sets com.urbanairship.push.PushManager.setUserNotificationsEnabled if the SDK should prompt for permission on Android 13+ devices. Enabled by default.

Link copied to clipboard

The default logger level.

Link copied to clipboard

The default notification accent color. See com.urbanairship.push.notifications.AirshipNotificationProvider.setDefaultAccentColor.

Link copied to clipboard

The default notification Icon. See com.urbanairship.push.notifications.AirshipNotificationProvider.setSmallIcon.

Link copied to clipboard

The large notification Icon. See com.urbanairship.push.notifications.AirshipNotificationProvider.setLargeIcon.

Link copied to clipboard

The application's production app key.

Link copied to clipboard

The application's production app secret.

Link copied to clipboard

The logger level when the application is in production mode.

Link copied to clipboard

The production log privacy level.

Link copied to clipboard

The flag to require initial remote-config for device URLs.

Link copied to clipboard

The reset enabled features option.

Link copied to clipboard

The Airship cloud site for data locality.

Link copied to clipboard

The additional URLs that will be added to the allow list for both UrlAllowList.SCOPE_OPEN_URL and UrlAllowList.SCOPE_JAVASCRIPT_INTERFACE scopes. See UrlAllowList.addEntry for valid URL patterns.

Link copied to clipboard

The additional URLs that will be added to the allow list for scope UrlAllowList.SCOPE_JAVASCRIPT_INTERFACE. See UrlAllowList.addEntry for valid URL patterns.

Link copied to clipboard

The additional URLs that will be added to the allow list for scope UrlAllowList.SCOPE_OPEN_URL. See UrlAllowList.addEntry for valid URL patterns.

Link copied to clipboard

Overrides the input validation used by Preference Center and Scenes.

Functions

Link copied to clipboard
fun applyConfig(context: Context, @XmlRes xmlResourceId: Int): AirshipConfigOptions.Builder

Apply options from a xml resource file. The XML file must contain the element AirshipConfigOptions and any public AirshipConfigOptions fields should be set as attributes on the element. Example:

Link copied to clipboard

Apply the options from the default properties file airshipconfig.properties.

Link copied to clipboard

Applies properties from a given Properties object.

Apply the options from a given properties file. The properties file should be available in the assets directory. The properties file can define any of the public AirshipConfigOptions fields. Example:

Link copied to clipboard

Builds the config options.

Link copied to clipboard

Automatically determine the provisioning mode of the application.

Link copied to clipboard
Link copied to clipboard

Set the transport types allowed for Push.

Link copied to clipboard

Set the flag indicating whether the application will use analytics.

Link copied to clipboard

Set the default app key.

Link copied to clipboard

Set the default app secret.

Link copied to clipboard

Sets the app store URI for the rate-app action. If not set, the action will generate it using the app's current package name.

Link copied to clipboard

Set the flag indicating whether or not to launch the launcher activity when a push notification or push notification button is opened and the application intent receiver did not launch an activity.

Link copied to clipboard

Set the auto pause In-App Automation on launch.

Link copied to clipboard

Set the background reporting interval.

Link copied to clipboard

Set the flag indicating whether channel capture feature is enabled or not.

Link copied to clipboard

Set the flag indicating whether channel creation delay is enabled or not.

Link copied to clipboard

Set the flag indicating whether data collection needs to be opted in with Airship.setDataCollectionEnabled.

Link copied to clipboard

Set the application's development app key.

Link copied to clipboard

Set the application's development app secret.

Link copied to clipboard

Set the logger level when the application is in debug mode.

Link copied to clipboard

Sets the default enabled SDK features. See PrivacyManager for more info.

Link copied to clipboard

Set the flag indicating whether extended broadcasts are enabled or disabled.

Link copied to clipboard

Sets the Firebase app name that is used for FCM. If set, the app name must exist in order for Airship to get registration token. The app should be initialized with Firebase before takeOff, or during onAirshipReady callback.

Link copied to clipboard

The Airship URL used to pull the initial config. This should only be set if you are using custom domains that forward to Airship.

Link copied to clipboard

Set the flag indicating whether the application is in production or development.

Link copied to clipboard

Overrides the input validation used by Preference Center and Scenes.

Sets if when enabling com.urbanairship.push.PushManager.setUserNotificationsEnabled if the SDK should prompt for permission on Android 13+ devices. Enabled by default.

Link copied to clipboard

Set the default logger level.

Link copied to clipboard

Sets the default notification accent color.

Link copied to clipboard

Sets the default notification channel.

Link copied to clipboard

Sets the default notification Icon.

Link copied to clipboard

Sets the large notification Icon.

Link copied to clipboard

Set the application's production app key.

Link copied to clipboard

Set the application's production app secret.

Link copied to clipboard

Set the logger level when the application is in production mode.

Link copied to clipboard

Sets the flag to require initial remote-config for device URLs.

Link copied to clipboard

Set the reset enabled features option.

Link copied to clipboard

Sets the Airship cloud site for data locality.

Link copied to clipboard

Sets the additional URLs that will be added to the allow list for both UrlAllowList.SCOPE_OPEN_URL and UrlAllowList.SCOPE_JAVASCRIPT_INTERFACE scopes. See UrlAllowList.addEntry for valid URL patterns.

Link copied to clipboard

Sets the additional URLs that will be added to the allow list for scope UrlAllowList.SCOPE_JAVASCRIPT_INTERFACE. See UrlAllowList.addEntry for valid URL patterns.

Link copied to clipboard

Sets the additional URLs that will be added to the allow list for scope UrlAllowList.SCOPE_OPEN_URL. See UrlAllowList.addEntry for valid URL patterns.

Link copied to clipboard

The same as .applyConfig, but throws an exception instead of logging an error.

Link copied to clipboard

Same as applyDefaultProperties, but throws an exception instead of logging an error.

Link copied to clipboard

The same as applyProperties, but throws an exception instead of logging an error.

Same as applyProperties, but throws an exception instead of logging an error.