Package io.getstream.butterfly
Types
Definition of the window size to be on the global scope.
WindowInfoActivity tracks window configurations and update the WindowLayoutInfo by invoking onWindowLayoutInfoUpdated. Also, provides a default property windowSize which includes definition of the screen size.
WindowInfoAppcompatActivity tracks window configurations and update the WindowLayoutInfo by invoking onWindowLayoutInfoUpdated. Also, provides a default property windowSize which includes definition of the screen size.
WindowInfoFragment tracks window configurations and update the WindowLayoutInfo by invoking onWindowLayoutInfoUpdated. Also, provides a default property windowSize which includes definition of the screen size.
WindowInfoFragmentActivity tracks window configurations and update the WindowLayoutInfo by invoking onWindowLayoutInfoUpdated. Also, provides a default property windowSize which includes definition of the screen size.
Breakpoints defines the screen size at which a layout will adapt to best fit content and conform to responsive layout requirements. A breakpoint range informs how a screen adjusts to fit its size and orientation.
Properties
Returns a dp size of the hinge from a FoldingFeature.
Returns a width Dp size of the hinge from a FoldingFeature.
Returns a width pixel size of the hinge from a FoldingFeature.
Returns a pixel size of the hinge from a FoldingFeature.
Returns a width Dp size of the hinge from a FoldingFeature.
Returns a width pixel size of the hinge from a FoldingFeature.
Returns whether a FoldingFeature is the book mode.
Returns whether the state of a FoldingFeature is flat.
Returns whether the state of a FoldingFeature is half-opened.
Returns whether the orientation of a FoldingFeature is horizontal.
Calculates if a FoldingFeature should be thought of as splitting the window into multiple physical areas that can be seen by users as logically separate. Display panels connected by a hinge are always separated. Folds on flexible screens should be treated as separating when they are not FoldingFeature.State.FLAT.
Returns whether a FoldingFeature is the table-top mode.
Returns whether the orientation of a FoldingFeature is vertical.
Returns FoldingFeature.Orientation.HORIZONTAL if the width is greater than the height, FoldingFeature.Orientation.VERTICAL otherwise.
Returns a Flow of the Posture by tracking the WindowLayoutInfo.
Returns a Flow of the Posture by tracking the WindowLayoutInfo.
Returns the FoldingFeature.State for the FoldingFeature.
Returns a Flow of the WindowLayoutInfo.
Returns a Flow of the WindowLayoutInfo.
Functions
Finds a FoldingFeature from a WindowLayoutInfo.
Finds a FoldingFeature from a list of DisplayFeature.
Returns the WindowSize by computing the size of the viewport.
Returns a Flow of the Posture by tracking the WindowLayoutInfo.
Returns a Posture which represent the current posture of the foldable device.
Returns a Size spec from a FoldingFeature.