Constructor of class
to configure class, if configuration option is omitted, default one is used
Protected ReadonlyconfigClass config
OptionalanimationDirection?: AnimationDirectionDirection of image animation
OptionalanimationDisable?: booleanEnable/disable image animation
OptionalbackgroundColor?: stringBackground color of whole prompt (all css possibilities, like hexa color '#000000', 'red'...)
OptionalcontainerId?: stringId of whole container prompt
OptionalhideImage?: booleanHide/show image
OptionalhideText?: booleanHide/show description text
OptionalimageColor?: stringColor of device image (all css possibilities, like hexa color '#000000', 'red'...)
OptionalimageId?: stringId of svg image
OptionalimageSize?: stringSize of device image (all css units like px, em, rem, vh...)
OptionalimageStyle?: ImageStylePhone style
OptionalmobileDetect?: booleanTurn on/off automatic mobile/tablet detection When automatic detection is on, then prompt is show only on mobile/tablet devices
Optionalorientation?: DeviceOrientationThe orientation you want to force, if orientation is different, prompt is showed.
OptionalstyleId?: stringId of style tag, where all styles of this library are defined
Optionaltext?: stringDescription text to show
OptionaltextColor?: stringColor of description text (all css possibilities, like hexa color '#000000', 'red'...)
OptionaltextFont?: stringFont of description text
OptionaltextId?: stringId of container with description text
OptionaltextSize?: stringSize of description text (all css units like px, em, rem, vh...)
OptionalzIndex?: numberz-index of whole prompt
Protected ReadonlycheckCheck orientation fn reference to be able to add and also remove event listener
ProtectedMethod to show/hide whole prompt
ProtectedanimationProtectedAnimation css styles,
ProtecteddeviceProtectedDevice SVG image
ProtectedfinalProtectedFinal angle of image
ProtectedimageProtectedSize of image, returns size from config, or if image size is not presented in config it returns 60vh for portrait, 30vh for landscape
ProtectedinitialProtectedInitial angle of image, if animation is disabled, it returns final angle
ProtectedisProtectedReturn display CSS property based on hideImage property
ProtectedisProtectedReturn display CSS property based on hideText property
ProtectedsvgProtectedGet phone svg style based on imageStyle property
ProtectedtextProtectedSize of text, returns size from config, or if text size is not presented in config it returns 10vh for portrait, 5vh for landscape
ProtectedzProtectedz-index rule for css, if zIndex property is present in config
Class to show device rotation fullscreen prompt, it activates immediately upon instantiation