Constructor of class
to configure class, if configuration option is omitted, default one is used
Protected
Readonly
configClass config
Optional
animationDirection?: AnimationDirectionDirection of image animation
Optional
animationDisable?: booleanEnable/disable image animation
Optional
backgroundColor?: stringBackground color of whole prompt (all css possibilities, like hexa color '#000000', 'red'...)
Optional
containerId?: stringId of whole container prompt
Optional
hideImage?: booleanHide/show image
Optional
hideText?: booleanHide/show description text
Optional
imageColor?: stringColor of device image (all css possibilities, like hexa color '#000000', 'red'...)
Optional
imageId?: stringId of svg image
Optional
imageSize?: stringSize of device image (all css units like px, em, rem, vh...)
Optional
imageStyle?: ImageStylePhone style
Optional
mobileDetect?: booleanTurn on/off automatic mobile/tablet detection When automatic detection is on, then prompt is show only on mobile/tablet devices
Optional
orientation?: DeviceOrientationThe orientation you want to force, if orientation is different, prompt is showed.
Optional
styleId?: stringId of style tag, where all styles of this library are defined
Optional
text?: stringDescription text to show
Optional
textColor?: stringColor of description text (all css possibilities, like hexa color '#000000', 'red'...)
Optional
textFont?: stringFont of description text
Optional
textId?: stringId of container with description text
Optional
textSize?: stringSize of description text (all css units like px, em, rem, vh...)
Optional
zIndex?: numberz-index of whole prompt
Protected
Readonly
checkCheck orientation fn reference to be able to add and also remove event listener
Protected
Method to show/hide whole prompt
Protected
animationProtected
Animation css styles,
Protected
deviceProtected
Device SVG image
Protected
finalProtected
Final angle of image
Protected
imageProtected
Size of image, returns size from config, or if image size is not presented in config it returns 60vh for portrait, 30vh for landscape
Protected
initialProtected
Initial angle of image, if animation is disabled, it returns final angle
Protected
isProtected
Return display CSS property based on hideImage property
Protected
isProtected
Return display CSS property based on hideText property
Protected
svgProtected
Get phone svg style based on imageStyle property
Protected
textProtected
Size of text, returns size from config, or if text size is not presented in config it returns 10vh for portrait, 5vh for landscape
Protected
zProtected
z-index rule for css, if zIndex property is present in config
Class to show device rotation fullscreen prompt, it activates immediately upon instantiation