arch-android

//Android/br.com.arch.toolkit.android.foldable.extension/onNewLayoutInfo

onNewLayoutInfo

[android]
fun ComponentActivity.onNewLayoutInfo(func: (WindowLayoutInfo) -> Unit): Job

Observes the activity and notifies on device state changes

Parameters

android

   
func Will be called whenever there is a change