applyConfig
open fun applyConfig(@NonNull 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:
<AirshipConfigOptions
notificationIcon = "@drawable/ic_notification"
notificationAccentColor = "@color/color_accent"
inProduction = "false"
productionAppKey = "Your Production App Key"
productionAppSecret = "Your Production App Secret"
productionLogLevel = "NONE"
developmentAppKey = "Your Development App Key"
developmentAppSecret = "Your Development App Secret"
developmentLogLevel = "VERBOSE"
Content copied to clipboard
Return
The config option builder.
Parameters
context
The application context.
xmlResourceId
The xml resource ID.