IviServiceNullableMirrorableMapPropertyDelegate

class IviServiceNullableMirrorableMapPropertyDelegate<K, V>(    lifecycleOwner: LifecycleOwner,     listener: MirrorableMapListenerForwarder<K, V>,     observer: ChangeHandler<MirrorableMap<K, V>?>) : IviServicePropertyDelegate<MirrorableMap<K, V>?>

Property delegate for nullable IVI service MirrorableMap properties.

Same as IviServiceNonNullMirrorableMapPropertyDelegate but for nullable properties. The IviServiceBase does not check nullable properties. When the property changes, the listener is registered to it with its associate lifecycleOwner.

For non-null MirrorableMap properties, see IviServiceNonNullMirrorableMapPropertyDelegate

Constructors

fun <K, V> IviServiceNullableMirrorableMapPropertyDelegate(    lifecycleOwner: LifecycleOwner,     listener: MirrorableMapListenerForwarder<K, V>,     observer: ChangeHandler<MirrorableMap<K, V>?>)

Properties

Link copied to clipboard
open override var afterChange: ChangeHandler<MirrorableMap<K, V>?>? = null

When not null, this callback is invoked after an IVI service interface property has changed and the new value is propagated to clients.

Link copied to clipboard
open override var beforeChange: ChangeHandler<MirrorableMap<K, V>?>? = null

When not null, this callback is invoked when an IVI service interface property has changed, before the actual property value is changed and the new value is propagated to clients.

Functions

Link copied to clipboard
operator fun getValue(thisRef: Any?, property: KProperty<*>): MirrorableMap<K, V>?
Link copied to clipboard
operator fun setValue(    thisRef: Any?,     property: KProperty<*>,     value: MirrorableMap<K, V>?)