Class AndroidOrientationService
- java.lang.Object
-
- com.gluonhq.attach.orientation.impl.AndroidOrientationService
-
- All Implemented Interfaces:
OrientationService
public class AndroidOrientationService extends java.lang.Object implements OrientationService
-
-
Constructor Summary
Constructors Constructor Description 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.
-
-
-
Method Detail
-
orientationProperty
public javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Orientation> orientationProperty()
Description copied from interface:OrientationServiceA read-only property containing the current orientation of the device, which will be updated automatically whenever the device orientation changes.- Specified by:
orientationPropertyin interfaceOrientationService- 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:OrientationServiceReturns the current orientation of the device.- Specified by:
getOrientationin interfaceOrientationService- Returns:
- An optional containing the orientation of the device, or empty if unknown
-
-