Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement hinge relevant extensions #2

Merged
merged 10 commits into from Jan 27, 2022
Merged

Implement hinge relevant extensions #2

merged 10 commits into from Jan 27, 2022

Conversation

skydoves
Copy link
Member

馃幆 Goal

Implement hinge-relevant extensions.

馃洜 Implementation details

  • Added LocalWindowLayoutInfo
  • Added WindowOrientation enum class and windowOrientation extension.

FoldingFeature

  • FoldingFeature.hingeWidthPxSize: Int
  • FoldingFeature.hingeHeightPxSize: Int
  • FoldingFeature.hingePxSize: Int
  • FoldingFeature.hingeWidthDpSize: Int
  • FoldingFeature.hingeHeightDpSize: Int
  • FoldingFeature.hingeDpSize: Int

FoldingFeature for Jetpack Compose

  • FoldingFeature.hingeWidthDp: Dp
  • FoldingFeature.hingeHeightDp: Dp
  • FoldingFeature.hingeDp: Dp

WindowLayoutInfo

  • WindowLayoutInfo.isSeparating: Boolean
  • WindowLayoutInfo.occlusionType: FoldingFeature.OcclusionType
  • WindowLayoutInfo.orientation: FoldingFeature.Orientation
  • WindowLayoutInfo.state: FoldingFeature.State

@skydoves skydoves self-assigned this Jan 27, 2022
@skydoves skydoves merged commit 09ef2b9 into develop Jan 27, 2022
@skydoves skydoves deleted the feature/hinge/size branch January 27, 2022 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant