arch-android

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

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.

Return

The position of the fold (distance from the end/bottom edge), or 0 if it doesn’t intersect the view.

Parameters

android

   
foldingFeature Information about the device’s fold.
orientation The orientation of the fold (FoldingFeature.Orientation).