//Android/br.com.arch.toolkit.android.foldable.extension
| Name | Summary |
|---|---|
| OnFoldableStateChangeListener | [android] interface OnFoldableStateChangeListener |
| Name | Summary |
|---|---|
| getFoldPosition | [android] fun ERROR CLASS: Symbol not found for View.getFoldPosition(foldingFeature: FoldingFeature, orientation: FoldingFeature.Orientation): ERROR CLASS: Cannot infer argument for type parameter K Calculates the fold position relative to the view’s dimensions. |
| handleFoldableStateChange | [android] fun FragmentActivity.handleFoldableStateChange(layout: ERROR CLASS: Symbol not found for ViewGroup, @IdResreactiveGuideId: Int, orientation: FoldingFeature.Orientation): Job fun FragmentActivity.handleFoldableStateChange(layout: ERROR CLASS: Symbol not found for ViewGroup, @IdResreactiveGuideId: Int, orientation: FoldingFeature.Orientation, onChangeState: (isFolded: Boolean) -> Unit?): Job fun FragmentActivity.handleFoldableStateChange(layout: ERROR CLASS: Symbol not found for ViewGroup, @IdResreactiveGuideId: Int, orientation: FoldingFeature.Orientation, onChangeState: (isFolded: Boolean) -> Unit?, onWrongOrientation: () -> Unit?): Job 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 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 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 |
| observeFoldableStateChanges | [android] fun ComponentActivity.observeFoldableStateChanges(layout: ERROR CLASS: Symbol not found for ViewGroup, orientation: FoldingFeature.Orientation, listener: OnFoldableStateChangeListener): Job Observes the activity and notifies on device state changes |
| onNewLayoutInfo | [android] fun ComponentActivity.onNewLayoutInfo(func: (WindowLayoutInfo) -> Unit): Job Observes the activity and notifies on device state changes |