LiveDataReactiveSteamsKt

public final class LiveDataReactiveSteamsKt


Summary

Public methods

static final @NonNull LiveData<@NonNull T>

Creates an observable LiveData stream from a ReactiveStreams Publisher.

static final @NonNull Publisher<@NonNull T>
<T extends Object> LiveDataReactiveSteamsKt.toPublisher(
    LiveData<T> receiver,
    LifecycleOwner lifecycle
)

Adapts the given LiveData stream to a ReactiveStreams Publisher.

Public methods

LiveDataReactiveSteamsKt.toLiveData

public static final @NonNull LiveData<@NonNull T> <T extends Object> LiveDataReactiveSteamsKt.toLiveData(Publisher<T> receiver)

Creates an observable LiveData stream from a ReactiveStreams Publisher.

See also
fromPublisher

LiveDataReactiveSteamsKt.toPublisher

public static final @NonNull Publisher<@NonNull T> <T extends Object> LiveDataReactiveSteamsKt.toPublisher(
    LiveData<T> receiver,
    LifecycleOwner lifecycle
)

Adapts the given LiveData stream to a ReactiveStreams Publisher.

See also
toPublisher