Package io.getstream.butterfly.livedata

Functions

Link copied to clipboard
fun Activity.postureLiveData(context: CoroutineContext = EmptyCoroutineContext): LiveData<Posture>
fun Fragment.postureLiveData(context: CoroutineContext = EmptyCoroutineContext): LiveData<Posture>

Returns a LiveData of the Posture by tracking the WindowLayoutInfo.

Link copied to clipboard
fun Activity.windowLayoutInfoLiveData(context: CoroutineContext = EmptyCoroutineContext): LiveData<WindowLayoutInfo>
fun Fragment.windowLayoutInfoLiveData(context: CoroutineContext = EmptyCoroutineContext): LiveData<WindowLayoutInfo>
fun WindowInfoTracker.windowLayoutInfoLiveData(activity: Activity, context: CoroutineContext = EmptyCoroutineContext): LiveData<WindowLayoutInfo>

Returns a LiveData of the WindowLayoutInfo.