Class AndroidConnectivityService
- java.lang.Object
-
- com.gluonhq.attach.connectivity.impl.AndroidConnectivityService
-
- All Implemented Interfaces:
ConnectivityService
public class AndroidConnectivityService extends java.lang.Object implements ConnectivityService
Note: Requires this permission:<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
-
-
Constructor Summary
Constructors Constructor Description AndroidConnectivityService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javafx.beans.property.ReadOnlyBooleanProperty
connectedProperty()
A read-only property indicating whether there is data connectivity available or not.boolean
isConnected()
A boolean indicating whether there is data connectivity available or not.
-
-
-
Method Detail
-
connectedProperty
public javafx.beans.property.ReadOnlyBooleanProperty connectedProperty()
Description copied from interface:ConnectivityService
A read-only property indicating whether there is data connectivity available or not.- Specified by:
connectedProperty
in interfaceConnectivityService
- Returns:
- Property will be true if there is data connectivity, and false otherwise.
-
isConnected
public boolean isConnected()
Description copied from interface:ConnectivityService
A boolean indicating whether there is data connectivity available or not.- Specified by:
isConnected
in interfaceConnectivityService
- Returns:
- Will be true if there is data connectivity, and false otherwise.
-
-