LiveUpdateManager

Airship Live Updates.

Constructors

Link copied to clipboard
constructor(    context: Context,     dataStore: PreferenceDataStore,     config: AirshipRuntimeConfig,     privacyManager: PrivacyManager,     channel: AirshipChannel,     pushManager: PushManager)

Types

Link copied to clipboard
object Companion

Inherited properties

Link copied to clipboard
protected val defaultExecutor: Executor

Functions

Link copied to clipboard
fun clearAll()

Ends tracking for all active Live Updates.

Link copied to clipboard
fun end(name: String, content: JsonMap? = null, timestamp: Long = System.currentTimeMillis(), dismissTimestamp: Long? = null)

Ends tracking for the Live Update with the given name.

Link copied to clipboard
fun register(type: String, handler: LiveUpdateHandler)

Registers a handler for the given type.

Link copied to clipboard
fun start(name: String, type: String, content: JsonMap, timestamp: Long = System.currentTimeMillis(), dismissTimestamp: Long? = null)

Starts tracking for a Live Update, with initial content.

Link copied to clipboard
fun update(name: String, content: JsonMap, timestamp: Long = System.currentTimeMillis(), dismissTimestamp: Long? = null)

Updates the content for a tracked Live Update.

Inherited functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun onPerformJob(@NonNull airship: UAirship, @NonNull jobInfo: JobInfo): JobResult
Link copied to clipboard
protected open fun tearDown()