-
public class DeviceInfoCreated by Aleksei Cherniaev on 07/05/2023.
-
-
Field Summary
Fields Modifier and Type Field Description private BooleanisTabletprivate final BooleanisLandscapeConfigurationprivate final IntegerscreenWidthDpprivate final IntegerscreenHeightDppublic final static DeviceInfoINSTANCE
-
Method Summary
Modifier and Type Method Description final Unitinit(Context context)Only visual Contexts (such as Activity or one created with Context#createWindowContext) or ones created with Context#createDisplayContext are associated with displays. final BooleangetIsTablet()final UnitsetIsTablet(Boolean isTablet)final BooleangetIsLandscapeConfiguration()final IntegergetScreenWidthDp()final IntegergetScreenHeightDp()-
-
Method Detail
-
init
final Unit init(Context context)
Only visual Contexts (such as Activity or one created with Context#createWindowContext) or ones created with Context#createDisplayContext are associated with displays.
-
getIsTablet
final Boolean getIsTablet()
-
setIsTablet
final Unit setIsTablet(Boolean isTablet)
-
getIsLandscapeConfiguration
final Boolean getIsLandscapeConfiguration()
-
getScreenWidthDp
final Integer getScreenWidthDp()
-
getScreenHeightDp
final Integer getScreenHeightDp()
-
-
-
-