Classifier

open class Classifier

Uses information about the device's foldable posture and the size of the screen to determine what posture the screen is in and all information that can be extracted about the size of the screen and where its hinge is located.

This class and all of its methods are open for extension and override, particularly for creating fakes for testing purposes.

Constructors

Link copied to clipboard
constructor()

A default instance of this class without any initialization or other actions.

Functions

Link copied to clipboard
open fun createClassifier(foldingFeature: FoldingFeature?, windowDpSize: DpSize): ScreenClassifier

Classifies the device as either fully opened or a foldable in one of several possible postures, based on the information given to it about the app's window.