IviServiceNonNullMirrorableMapPropertyDelegate
class IviServiceNonNullMirrorableMapPropertyDelegate<K, V>( lifecycleOwner: LifecycleOwner, listener: MirrorableMapListenerForwarder<K, V>, observer: ChangeHandler<MirrorableMap<K, V>>) : IviServiceNonNullPropertyDelegateBase<MirrorableMap<K, V>>
Content copied to clipboard
Property delegate for non-null IVI service MirrorableMap properties.
The purpose of this property delegate is twofold:
Notify an observer of property changes
Keep the generated
Base classes free of initial values.
The latter is achieved by using a lateinit prop below and allow the IviServiceBase class to check through isInitialized if all properties are neatly initialized by the IVI service before marking the service initialized.
When the property changes, the listener is registered to it with its associate lifecycleOwner.
For nullable MirrorableMap properties, see IviServiceNullableMirrorableMapPropertyDelegate
Constructors
Link copied to clipboard
fun <K, V> IviServiceNonNullMirrorableMapPropertyDelegate( lifecycleOwner: LifecycleOwner, listener: MirrorableMapListenerForwarder<K, V>, observer: ChangeHandler<MirrorableMap<K, V>>)
Content copied to clipboard