//Android/br.com.arch.toolkit.android.foldable.extension/handleFoldableStateChange
[android]
fun FragmentActivity.handleFoldableStateChange(layout: ERROR CLASS: Symbol not found for ViewGroup, @IdResreactiveGuideId: Int, orientation: FoldingFeature.Orientation): Job
Observes the activity and handles device state changes
android
| Â | Â |
|---|---|
| layout | The layout to be used for reference - needed whenever calculating the fold’s position on screen |
| reactiveGuideId | The ReactiveGuide’s id - needed for dividing screen |
| orientation | The desired orientation - needed whenever calculating the fold’s position on screen |
[android]
fun FragmentActivity.handleFoldableStateChange(layout: ERROR CLASS: Symbol not found for ViewGroup, @IdResreactiveGuideId: Int, orientation: FoldingFeature.Orientation, onChangeState: (isFolded: Boolean) -> Unit?): Job
Observes the activity and handles device state changes
android
| Â | Â |
|---|---|
| layout | The layout to be used for reference - needed whenever calculating the fold’s position on screen |
| reactiveGuideId | The ReactiveGuide’s id - needed for dividing screen |
| orientation | The desired orientation - needed whenever calculating the fold’s position on screen |
| onChangeState | Called whenever there is a state change |
[android]
fun FragmentActivity.handleFoldableStateChange(layout: ERROR CLASS: Symbol not found for ViewGroup, @IdResreactiveGuideId: Int, orientation: FoldingFeature.Orientation, onChangeState: (isFolded: Boolean) -> Unit?, onWrongOrientation: () -> Unit?): Job
Observes the activity and handles device state changes
android
| Â | Â |
|---|---|
| layout | The layout to be used for reference - needed whenever calculating the fold’s position on screen |
| reactiveGuideId | The ReactiveGuide’s id - needed for dividing screen |
| orientation | The desired orientation - needed whenever calculating the fold’s position on screen |
| onChangeState | Called whenever there is a state change |
| onWrongOrientation | Called whenever the device changes to the unwanted orientation |
[android]
fun FragmentActivity.handleFoldableStateChange(layout: ERROR CLASS: Symbol not found for ViewGroup, @IdResreactiveGuideId: Int, orientation: FoldingFeature.Orientation, onChangeState: (isFolded: Boolean) -> Unit?, onWrongOrientation: () -> Unit?, onOpenFlat: (Int, FoldingFeature.Orientation) -> Unit?): Job
Observes the activity and handles device state changes
android
| Â | Â |
|---|---|
| layout | The layout to be used for reference - needed whenever calculating the fold’s position on screen |
| reactiveGuideId | The ReactiveGuide’s id - needed for dividing screen |
| orientation | The desired orientation - needed whenever calculating the fold’s position on screen |
| onChangeState | Called whenever there is a state change |
| onWrongOrientation | Called whenever the device changes to the unwanted orientation |
| onOpenFlat | Called whenever the device changes to fully open state |
[android]
fun FragmentActivity.handleFoldableStateChange(layout: ERROR CLASS: Symbol not found for ViewGroup, @IdResreactiveGuideId: Int, orientation: FoldingFeature.Orientation, onChangeState: (isFolded: Boolean) -> Unit?, onWrongOrientation: () -> Unit?, onOpenFlat: (Int, FoldingFeature.Orientation) -> Unit?, onHalfOpen: (Int, FoldingFeature.Orientation) -> Unit?): Job
Observes the activity and handles device state changes
android
| Â | Â |
|---|---|
| layout | The layout to be used for reference - needed whenever calculating the fold’s position on screen |
| reactiveGuideId | The ReactiveGuide’s id - needed for dividing screen |
| orientation | The desired orientation - needed whenever calculating the fold’s position on screen |
| onChangeState | Called whenever there is a state change |
| onWrongOrientation | Called whenever the device changes to the unwanted orientation |
| onOpenFlat | Called whenever the device changes to fully open state |
| onHalfOpen | Called whenever the device changes to half open state |
[android]
fun FragmentActivity.handleFoldableStateChange(layout: ERROR CLASS: Symbol not found for ViewGroup, @IdResreactiveGuideId: Int, orientation: FoldingFeature.Orientation, onChangeState: (isFolded: Boolean) -> Unit?, onWrongOrientation: () -> Unit?, onOpenFlat: (Int, FoldingFeature.Orientation) -> Unit?, onHalfOpen: (Int, FoldingFeature.Orientation) -> Unit?, onClosed: () -> Unit?): Job
Observes the activity and handles device state changes
android
| Â | Â |
|---|---|
| layout | The layout to be used for reference - needed whenever calculating the fold’s position on screen |
| reactiveGuideId | The ReactiveGuide’s id - needed for dividing screen |
| orientation | The desired orientation - needed whenever calculating the fold’s position on screen |
| onChangeState | Called whenever there is a state change |
| onWrongOrientation | Called whenever the device changes to the unwanted orientation |
| onOpenFlat | Called whenever the device changes to fully open state |
| onHalfOpen | Called whenever the device changes to half open state |
| onClosed | Called whenever the device changes to closed state |