Class AndroidOrientationService

java.lang.Object
com.gluonhq.attach.orientation.impl.AndroidOrientationService
All Implemented Interfaces:
OrientationService

public class AndroidOrientationService extends Object implements OrientationService
  • Property Summary

    Properties
    Type
    Property
    Description
    javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Orientation>
    A read-only property containing the current orientation of the device, which will be updated automatically whenever the device orientation changes.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    final Optional<javafx.geometry.Orientation>
    Gets the value of the property orientation.
    javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Orientation>
    A read-only property containing the current orientation of the device, which will be updated automatically whenever the device orientation changes.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Property Details

    • orientation

      public javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Orientation> orientationProperty
      Specified by:
      orientationProperty in interface OrientationService
      Returns:
      A read-only property containing the current orientation of the device
      See Also:
  • Constructor Details

    • AndroidOrientationService

      public AndroidOrientationService()
  • Method Details

    • orientationProperty

      public javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Orientation> orientationProperty()
      Description copied from interface: OrientationService
      A read-only property containing the current orientation of the device, which will be updated automatically whenever the device orientation changes.
      Specified by:
      orientationProperty in interface OrientationService
      Returns:
      A read-only property containing the current orientation of the device
      See Also:
    • getOrientation

      public final Optional<javafx.geometry.Orientation> getOrientation()
      Gets the value of the property orientation.
      Specified by:
      getOrientation in interface OrientationService
      Property description:
      Returns:
      An optional containing the orientation of the device, or empty if unknown