LiveUpdateManager

Airship Live Updates.

Types

Link copied to clipboard
object Companion

Inherited properties

Link copied to clipboard
Link copied to clipboard
protected val dataStore: PreferenceStore

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: Instant = Clock.DEFAULT_CLOCK.now(), dismissTimestamp: Instant? = 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: Instant = Clock.DEFAULT_CLOCK.now(), dismissTimestamp: Instant? = null)

Starts tracking for a Live Update, with initial content.

Link copied to clipboard
fun update(name: String, content: JsonMap, timestamp: Instant = Clock.DEFAULT_CLOCK.now(), dismissTimestamp: Instant? = null)

Updates the content for a tracked Live Update.

Inherited functions

Link copied to clipboard
Link copied to clipboard