Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AppSize

The current size for your application. This should work both server side and client side, but you will have much better results client side.

Hierarchy

  • AppSize

Index

Properties

isDesktop

isDesktop: boolean

Boolean if currently matching a desktop screen by comparing the max width of the device.

isLandscape

isLandscape: boolean

Boolean if the app is considered to be in landscape mode. This will just verify that the window width is greater than the window height.

NOTE: This might not be super accurate on Android devices since the soft keyboard will change the dimensions of the viewport when it appears. It is recommended to use the useOrientation hook as well if you'd like to get the current orientation type.

isLargeDesktop

isLargeDesktop: boolean

Boolean if currently matching a large desktop screen by comparing the max width of the device.

isPhone

isPhone: boolean

Boolean if currently matching a phone by comparing the max width of the device.

isTablet

isTablet: boolean

Boolean if currently matching a tablet by comparing the max width of the device.

Generated using TypeDoc