Class AndroidOrientationService

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<javafx.geometry.Orientation> getOrientation()
      Returns the current orientation of the device.
      javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Orientation> orientationProperty()
      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
    • Constructor Detail

      • AndroidOrientationService

        public AndroidOrientationService()
    • Method Detail

      • 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
      • getOrientation

        public final java.util.Optional<javafx.geometry.Orientation> getOrientation()
        Description copied from interface: OrientationService
        Returns the current orientation of the device.
        Specified by:
        getOrientation in interface OrientationService
        Returns:
        An optional containing the orientation of the device, or empty if unknown