Class ScreenOrientationInfo

java.lang.Object
org.vaadin.firitin.devicemotion.ScreenOrientationInfo

public class ScreenOrientationInfo extends Object
Represents screen orientation information.
Author:
mstahv
  • Constructor Details

    • ScreenOrientationInfo

      public ScreenOrientationInfo()
  • Method Details

    • getType

      public String getType()
      Returns:
      the orientation type as a string (e.g., "portrait-primary", "landscape-primary")
    • getOrientationType

      public ScreenOrientationInfo.OrientationType getOrientationType()
      Returns:
      the orientation type as an enum
    • getAngle

      public Integer getAngle()
      Returns:
      the angle of the screen orientation in degrees (0, 90, 180, or 270)
    • setType

      public void setType(String type)
    • setAngle

      public void setAngle(Integer angle)
    • toString

      public String toString()
      Overrides:
      toString in class Object