java.lang.Object
com.gluonhq.attach.battery.impl.IOSBatteryService
- All Implemented Interfaces:
BatteryService
-
Property Summary
PropertiesTypePropertyDescriptionjavafx.beans.property.ReadOnlyFloatPropertyReturns a property that will be frequently updated to reflect the current battery level.javafx.beans.property.ReadOnlyBooleanPropertyReturns a property that will be updated to reflect whether the device is plugged in to an external power source or not. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionjavafx.beans.property.ReadOnlyFloatPropertyReturns a property that will be frequently updated to reflect the current battery level.floatGets the value of thebatteryLevelproperty.booleanGets the value of thepluggedInproperty.javafx.beans.property.ReadOnlyBooleanPropertyReturns a property that will be updated to reflect whether the device is plugged in to an external power source or not.
-
Property Details
-
batteryLevel
public javafx.beans.property.ReadOnlyFloatProperty batteryLevelProperty- Specified by:
batteryLevelPropertyin interfaceBatteryService- Returns:
- A property containing the current battery level.
- See Also:
-
pluggedIn
public javafx.beans.property.ReadOnlyBooleanProperty pluggedInProperty- Specified by:
pluggedInPropertyin interfaceBatteryService- Returns:
- A property containing the plugged-in status of the device.
- See Also:
-
-
Constructor Details
-
IOSBatteryService
public IOSBatteryService()
-
-
Method Details
-
getBatteryLevel
public float getBatteryLevel()Gets the value of thebatteryLevelproperty.- Specified by:
getBatteryLevelin interfaceBatteryService- Property description:
- Returns:
- the value of the
batteryLevelproperty - See Also:
-
batteryLevelProperty
public javafx.beans.property.ReadOnlyFloatProperty batteryLevelProperty()Description copied from interface:BatteryServiceReturns a property that will be frequently updated to reflect the current battery level.- Specified by:
batteryLevelPropertyin interfaceBatteryService- Returns:
- the
batteryLevelproperty - See Also:
-
isPluggedIn
public boolean isPluggedIn()Gets the value of thepluggedInproperty.- Specified by:
isPluggedInin interfaceBatteryService- Property description:
- Returns:
- the value of the
pluggedInproperty - See Also:
-
pluggedInProperty
public javafx.beans.property.ReadOnlyBooleanProperty pluggedInProperty()Description copied from interface:BatteryServiceReturns a property that will be updated to reflect whether the device is plugged in to an external power source or not.- Specified by:
pluggedInPropertyin interfaceBatteryService- Returns:
- the
pluggedInproperty - See Also:
-