Screen Size Service
The Screen Size Service provides access to screen properties.
Methods
getCurrentScreenSize()
Description
- Gets the current screen size of the window.
'mobile'or'desktop'
Return Value: String
Code Example
this.screenSize = digideckCore.screenSizeService.getCurrentScreenSize();
isMobile()
Description
- Returns a
trueorfalsevalue depending on if the window's screen is currently mobile sized.
Return Value: Boolean
Code Example
this.isDesktop = digideckCore.screenSizeService.isMobile();
isTablet()
Description
- Returns a
trueorfalsevalue depending on if the window's screen is currently tablet sized.
Return Value: Boolean
Code Example
this.isDesktop = digideckCore.screenSizeService.isTablet();
isDesktop()
Description
- Returns a
trueorfalsevalue depending on if the window's screen is currently desktop sized.
Return Value: Boolean
Code Example
this.isDesktop = digideckCore.screenSizeService.isDesktop();