Google is committed to advancing racial equity for Black communities. See how.

MutableObservableWatchData

class MutableObservableWatchData<T : Any> : ObservableWatchData<T>
kotlin.Any
   ↳ androidx.wear.watchface.ObservableWatchData<T>
   ↳ androidx.wear.watchface.MutableObservableWatchData

ObservableWatchData which publicly exposes setValueT method

Summary

Public constructors

<init>(initialValue: T?)

ObservableWatchData which publicly exposes setValueT method

Inherited functions
Properties
T

Mutable observable value.

Public constructors

<init>

MutableObservableWatchData()

<init>

MutableObservableWatchData(initialValue: T?)

ObservableWatchData which publicly exposes setValueT method

Parameters

Properties

value

var value: T

Mutable observable value. Assigning a different value will trigger Observer.onChanged callbacks.