DefaultExtras

The default implementation of Extras.

See also

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
open override fun clearExtras()

Removes all stored extras.

Link copied to clipboard
open override fun <T> consumeExtra(key: Any): T

Retrieves the value of the extra with the given key, unless no such extra exists. Once the value of the extra is retrieved, the extra is removed. Use getExtra to prevent the extra from being removed.

Link copied to clipboard
open override fun <T> getExtra(key: Any): T

Retrieves the value of the extra with the given key, unless no such extra exists.

Link copied to clipboard
open override fun hasExtra(key: Any): Boolean

Checks whether an extra with the given key exists.

Link copied to clipboard
open override fun putExtra(key: Any, value: Any)

Saves an extra.