Class ConnectionState


  • public class ConnectionState
    extends java.lang.Object
    • Constructor Detail

      • ConnectionState

        public ConnectionState​(long bitMask)
    • Method Detail

      • getBitMask

        public long getBitMask()
      • isAirplaneModeEnabled

        public boolean isAirplaneModeEnabled()
        Is airplane mode enabled or not.
        Returns:
        true if airplane mode is enabled.
      • isWiFiEnabled

        public boolean isWiFiEnabled()
        Is Wi-Fi connection enabled or not.
        Returns:
        true if Wi-Fi connection is enabled.
      • isDataEnabled

        public boolean isDataEnabled()
        Is data connection enabled or not.
        Returns:
        true if data connection is enabled.