Builder
class Builder
Airship config builder.
Functions
Link copied to clipboard
open fun applyConfig(@NonNull context: Context, @XmlRes xmlResourceId: Int): AirshipConfigOptions.Builder
Apply options from a xml resource file.
Link copied to clipboard
Apply the options from the default properties file
airshipconfig.properties
.Link copied to clipboard
open fun applyProperties(@NonNull context: Context, @NonNull propertiesFile: String): AirshipConfigOptions.Builder
Apply the options from a given properties file.
open fun applyProperties(@NonNull context: Context, @NonNull properties: Properties): AirshipConfigOptions.Builder
Applies properties from a given Properties object.
Link copied to clipboard
Builds the config options.
Link copied to clipboard
Automatically determine the provisioning mode of the application.
Link copied to clipboard
open fun setAllowedTransports(@Nullable allowedTransports: Array<String>): AirshipConfigOptions.Builder
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 secret.
Link copied to clipboard
Sets the app store URI for the rate-app action.
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
open fun setAutoPauseInAppAutomationOnLaunch(autoPauseInAppAutomationOnLaunch: Boolean): AirshipConfigOptions.Builder
Set the auto pause In-App Automation on launch.
Link copied to clipboard
open fun setBackgroundReportingIntervalMS(backgroundReportingIntervalMS: Long): AirshipConfigOptions.Builder
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
open fun setChannelCreationDelayEnabled(channelCreationDelayEnabled: Boolean): AirshipConfigOptions.Builder
Set the flag indicating whether channel creation delay is enabled or not.
Link copied to clipboard
open fun setDataCollectionOptInEnabled(dataCollectionOptInEnabled: Boolean): AirshipConfigOptions.Builder
Set the flag indicating whether data collection needs to be opted in with setDataCollectionEnabled.
Link copied to clipboard
Set the application's development app key.
Link copied to clipboard
open fun setDevelopmentAppSecret(@Nullable developmentAppSecret: String): AirshipConfigOptions.Builder
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
open fun setEnabledFeatures(enabledFeatures: Array<PrivacyManager.Feature>): AirshipConfigOptions.Builder
Sets the default enabled SDK features.
Link copied to clipboard
open fun setExtendedBroadcastsEnabled(extendedBroadcastsEnabled: Boolean): AirshipConfigOptions.Builder
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.
Link copied to clipboard
The Airship URL used to pull the initial config.
Link copied to clipboard
Set the flag indicating whether the application is in production or development.
Link copied to clipboard
open fun setIsPromptForPermissionOnUserNotificationsEnabled(enabled: Boolean): AirshipConfigOptions.Builder
Sets if when enabling setUserNotificationsEnabled if the SDK should prompt for permission on Android 13+ devices.
Link copied to clipboard
Set the default logger level.
Link copied to clipboard
open fun setNotificationAccentColor(@ColorInt notificationAccentColor: Int): AirshipConfigOptions.Builder
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
open fun setNotificationLargeIcon(@DrawableRes notificationLargeIcon: Int): AirshipConfigOptions.Builder
Sets the large notification Icon.
Link copied to clipboard
Set the application's production app key.
Link copied to clipboard
open fun setProductionAppSecret(@Nullable productionAppSecret: String): AirshipConfigOptions.Builder
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
open fun setRequireInitialRemoteConfigEnabled(requireInitialRemoteConfigEnabled: Boolean): AirshipConfigOptions.Builder
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 additional URLs that will be added to the allow list for both SCOPE_OPEN_URL and SCOPE_JAVASCRIPT_INTERFACE scopes.
Link copied to clipboard
open fun setUrlAllowListScopeJavaScriptInterface(@Nullable urlAllowListScopeJavaScriptInterface: Array<String>): AirshipConfigOptions.Builder
Sets the additional URLs that will be added to the allow list for scope SCOPE_JAVASCRIPT_INTERFACE.
Link copied to clipboard
open fun setUrlAllowListScopeOpenUrl(@Nullable urlAllowListScopeOpenUrl: Array<String>): AirshipConfigOptions.Builder
Sets the additional URLs that will be added to the allow list for scope SCOPE_OPEN_URL.
Link copied to clipboard
open fun tryApplyConfig(@NonNull context: Context, @XmlRes xmlResourceId: Int): AirshipConfigOptions.Builder
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
open fun tryApplyProperties(@NonNull context: Context, @NonNull propertiesFile: String): AirshipConfigOptions.Builder
Same as applyProperties, but throws an exception instead of logging an error.
open fun tryApplyProperties(@NonNull context: Context, @NonNull properties: Properties): AirshipConfigOptions.Builder
The same as applyProperties, but throws an exception instead of logging an error.