Send Auto Update Preference
fun setAutoUpdateEnabled(
autoUpdateEnabled: Boolean,
checkInstallSource: Boolean? = false,
mmpUrl: String? = null,
metadata: Bundle? = null
)PARAMETER
TYPE
STATUS
DESCRIPTION
Tracking Auto Updates
Broadcast for Auto Update Job Scheduling
override fun onStart() {
super.onStart()
val intentFilter = IntentFilter().apply {
addAction(IgniteServiceSdk.ACTION_APP_UPDATE_JOB_SCHEDULED)
addAction(IgniteServiceSdk.ACTION_APP_UPDATE_JOB_CANCELLED)
}
registerReceiver(jobStatusBroadcastReceiver, intentFilter)
}
override fun onStop() {
super.onStop()
unregisterReceiver(jobStatusBroadcastReceiver)
}
private val jobStatusBroadcastReceiver: BroadcastReceiver = object : BroadcastReceiver() {
override fun onReceive(context: Context?, intent: Intent) {
when (intent.action) {
IgniteServiceSdk.ACTION_APP_UPDATE_JOB_SCHEDULED -> {
toast("App Update Job Scheduled.")
}
IgniteServiceSdk.ACTION_APP_UPDATE_JOB_CANCELLED -> {
toast("App Update Job Cancelled.")
}
else -> {
println("$TAG Unknown Broadcast Action")
}
}
}
}ACTION
DESCRIPTION
Broadcast for Auto Update Job Completion
ACTION
DESCRIPTION
Examples
Last updated
