SingleLiveDataValue

class SingleLiveDataValue<out T>(content: T)

A wrapper for a single-use LiveData value in the Discovery API.

Holds a value that can be consumed once, tracking its handled state.

Parameters

content

The content value to be held.

Constructors

Link copied to clipboard
constructor(content: T)

Properties

Link copied to clipboard

Indicates if the content has been handled.

Functions

Link copied to clipboard
fun getContent(): T

Retrieves the content value.

Link copied to clipboard

Retrieves the content if not yet consumed.