applyProperties
open fun applyProperties(@NonNull context: Context, @NonNull propertiesFile: String): AirshipConfigOptions.Builder
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:
# App Credentials
developmentAppKey = Your Development App Key
developmentAppSecret = Your Development App Secret
productionAppKey = Your Production App Key
productionAppSecret = Your Production Secret
# Flag to indicate what credentials to use
inProduction = false
# Log levels
developmentLogLevel = DEBUG
productionLogLevel = ERROR
# Notification settings
notificationIcon = ic_notification
notificationAccentColor = #ff0000
Content copied to clipboard
Return
The config option builder.
Parameters
context
The application context.
propertiesFile
The name of the properties file in the assets directory.
open fun applyProperties(@NonNull context: Context, @NonNull properties: Properties): AirshipConfigOptions.Builder
Applies properties from a given Properties object.
Return
The config option builder.
Parameters
context
The application context.
properties
The properties