Package org.brightify.hyperdrive.multiplatformx.property
Types
DeferredObservableProperty
Link copied to clipboard
MutableObservableProperty
Link copied to clipboard
ObservableProperty
Link copied to clipboard
ValueChangeListener
Link copied to clipboard
Implemented by listeners to observe ObservableProperty and DeferredObservableProperty value changes.
ViewModelProperty
Link copied to clipboard
Functions
combine
Link copied to clipboard
fun <T> combine(sources: List<ObservableProperty<T>>): ObservableProperty<List<T>>
Content copied to clipboard
Combine the last values of all provided ObservableProperty into a list of values.
fun <T1, T2> combine(source1: ObservableProperty<T1>, source2: ObservableProperty<T2>, equalityPolicy: ObservableProperty.EqualityPolicy<Pair<T1, T2>> = defaultEqualityPolicy()): ObservableProperty<Pair<T1, T2>>
Content copied to clipboard
fun <T1, T2, U> combine(source1: ObservableProperty<T1>, source2: ObservableProperty<T2>, equalityPolicy: ObservableProperty.EqualityPolicy<U> = defaultEqualityPolicy(), combine: (T1, T2) -> U): ObservableProperty<U>
Content copied to clipboard
Combine the last values of two ObservableProperty with a mapping function.
fun <T1, T2, T3, U> combine(source1: ObservableProperty<T1>, source2: ObservableProperty<T2>, source3: ObservableProperty<T3>, equalityPolicy: ObservableProperty.EqualityPolicy<Triple<T1, T2, T3>> = defaultEqualityPolicy()): ObservableProperty<Triple<T1, T2, T3>>
Content copied to clipboard
fun <T1, T2, T3, U> combine(source1: ObservableProperty<T1>, source2: ObservableProperty<T2>, source3: ObservableProperty<T3>, equalityPolicy: ObservableProperty.EqualityPolicy<U> = defaultEqualityPolicy(), combine: (T1, T2, T3) -> U): ObservableProperty<U>
Content copied to clipboard
Combine the last values of three ObservableProperty with a mapping function.
fun <T1, T2, T3, T4, U> combine(source1: ObservableProperty<T1>, source2: ObservableProperty<T2>, source3: ObservableProperty<T3>, source4: ObservableProperty<T4>, equalityPolicy: ObservableProperty.EqualityPolicy<U> = defaultEqualityPolicy(), combine: (T1, T2, T3, T4) -> U): ObservableProperty<U>
Content copied to clipboard
Combine the last values of four ObservableProperty with a mapping function.
fun <T1, T2, T3, T4, T5, U> combine(source1: ObservableProperty<T1>, source2: ObservableProperty<T2>, source3: ObservableProperty<T3>, source4: ObservableProperty<T4>, source5: ObservableProperty<T5>, equalityPolicy: ObservableProperty.EqualityPolicy<U> = defaultEqualityPolicy(), combine: (T1, T2, T3, T4, T5) -> U): ObservableProperty<U>
Content copied to clipboard
Combine the last values of five ObservableProperty with a mapping function.
constant
Link copied to clipboard
fun <T> ObservableProperty.Companion.constant(value: T): ObservableProperty<T>
Content copied to clipboard
defaultEqualityPolicy
Link copied to clipboard
deferred
Link copied to clipboard
filter
Link copied to clipboard
fun <T> ObservableProperty<T>.filter(equalityPolicy: ObservableProperty.EqualityPolicy<T> = defaultEqualityPolicy(), predicate: (T) -> Boolean): DeferredObservableProperty<T>
Content copied to clipboard
A filter function applied to each element collected from the ObservableProperty.
fun <T> ObservableProperty<T>.filter(initialValue: T, equalityPolicy: ObservableProperty.EqualityPolicy<T> = defaultEqualityPolicy(), predicate: (T) -> Boolean): ObservableProperty<T>
Content copied to clipboard
A filter function applied to each element collected from the ObservableProperty.
filterNotNull
Link copied to clipboard
fun <T : Any> ObservableProperty<T?>.filterNotNull(equalityPolicy: ObservableProperty.EqualityPolicy<T> = defaultEqualityPolicy()): DeferredObservableProperty<T>
Content copied to clipboard
Keep each non-null element collected from the ObservableProperty.
flatMapLatest
Link copied to clipboard
fun <T, U> DeferredObservableProperty<T>.flatMapLatest(equalityPolicy: ObservableProperty.EqualityPolicy<DeferredObservableProperty<U>> = identityEqualityPolicy(), transform: (T) -> DeferredObservableProperty<U>): DeferredObservableProperty<U>
Content copied to clipboard
A mapping function applied to each element collected from the ObsrvableProperty to return a DeferredObservableProperty.
fun <T, U> ObservableProperty<T>.flatMapLatest(equalityPolicy: ObservableProperty.EqualityPolicy<ObservableProperty<U>> = identityEqualityPolicy(), transform: (T) -> ObservableProperty<U>): ObservableProperty<U>
Content copied to clipboard
A mapping function applied to each element collected from the ObservableProperty to return another ObservableProperty.
identityEqualityPolicy
Link copied to clipboard
map
Link copied to clipboard
fun <T, U> DeferredObservableProperty<T>.map(equalityPolicy: ObservableProperty.EqualityPolicy<U> = defaultEqualityPolicy(), transform: (T) -> U): DeferredObservableProperty<U>
Content copied to clipboard
A mapping function applied to each element collected from the DeferredObservableProperty.
fun <T, U> ObservableProperty<T>.map(equalityPolicy: ObservableProperty.EqualityPolicy<U> = defaultEqualityPolicy(), transform: (T) -> U): ObservableProperty<U>
Content copied to clipboard
A mapping function applied to each element collected from the ObservableProperty.
merge
Link copied to clipboard
fun <T> merge(sources: List<ObservableProperty<T>>): DeferredObservableProperty<T>
Content copied to clipboard
mergeDeferred
Link copied to clipboard
fun <T> mergeDeferred(sources: List<DeferredObservableProperty<T>>): DeferredObservableProperty<T>
Content copied to clipboard
MutableObservableProperty
Link copied to clipboard
fun <T> MutableObservableProperty(initialValue: T, equalityPolicy: ObservableProperty.EqualityPolicy<T> = defaultEqualityPolicy()): MutableObservableProperty<T>
Content copied to clipboard
never
Link copied to clipboard
fun <T> ObservableProperty.Companion.never(): DeferredObservableProperty<T>
Content copied to clipboard
neverEqualPolicy
Link copied to clipboard
startWith
Link copied to clipboard
fun <T> DeferredObservableProperty<T>.startWith(initialValue: T): ObservableProperty<T>
Content copied to clipboard
Conversion method to synchronous ObservableProperty.