Class IOSOrientationService
java.lang.Object
com.gluonhq.attach.orientation.impl.IOSOrientationService
- All Implemented Interfaces:
OrientationService
-
Property Summary
TypePropertyDescriptionjavafx.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
-
Method Summary
Modifier and TypeMethodDescriptionfinal 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.
-
Property Details
-
orientation
public javafx.beans.property.ReadOnlyObjectProperty<javafx.geometry.Orientation> orientationProperty- Specified by:
orientationProperty
in interfaceOrientationService
- Returns:
- A read-only property containing the current orientation of the device
- See Also:
-
-
Constructor Details
-
IOSOrientationService
public IOSOrientationService()
-
-
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 interfaceOrientationService
- Returns:
- A read-only property containing the current orientation of the device
- See Also:
-
getOrientation
Gets the value of the property orientation.- Specified by:
getOrientation
in interfaceOrientationService
- Property description:
- Returns:
- An optional containing the orientation of the device, or empty if unknown
-