Options
All
  • Public
  • Public/Protected
  • All
Menu

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: boolean

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

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: boolean

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

isPhone: boolean

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

isTablet: boolean

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

Generated using TypeDoc