Property Delegate
A read-only Kotlin property delegate backed by a D-Bus property.
Reading the delegated property issues a D-Bus Get. The delegate also offers convenience accessors (getOrNull, await) and reactive observation of the property (changes, values, changesOrNull, valuesOrNull). Obtain one via Proxy.propDelegate.
The observation methods come in two families:
changes/changesOrNull emit change events only — nothing is emitted until the property changes after collection starts.
values/valuesOrNull emit the current value first, then all subsequent changes.
Each family has a throwing and a nullable variant: get, changes and values surface a missing/invalidated property as an exception or by dropping the event, while getOrNull, changesOrNull and valuesOrNull represent it as null.
Inheritors
Constructors
Properties
Functions
Like changes but also emits null whenever the property has been invalidated (i.e. it appears in the invalidatedProperties of a PropertiesChanged signal), instead of dropping the event.
Gets the current value of the property, however if the property doesn't currently exist (org.freedesktop.DBus.Error.InvalidArgs), returns null rather than throwing. Any other com.monkopedia.sdbus.SdbusException is still thrown.
Like values but null-safe: the current value (from getOrNull, null if the property doesn't currently exist) is emitted first when collection starts, followed by every subsequent change (from changesOrNull, which emits null on invalidation).