Class Radios
- All Implemented Interfaces:
Serializable, Cloneable
Represents the set of radios and their states on a device. Examples of radios include Wi-Fi, GPS, Bluetooth, and NFC.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()booleanTrue if Bluetooth is enabled at the beginning of the test; otherwise, false.getGps()True if GPS is enabled at the beginning of the test; otherwise, false.getNfc()True if NFC is enabled at the beginning of the test; otherwise, false.getWifi()True if Wi-Fi is enabled at the beginning of the test; otherwise, false.inthashCode()True if Bluetooth is enabled at the beginning of the test; otherwise, false.isGps()True if GPS is enabled at the beginning of the test; otherwise, false.isNfc()True if NFC is enabled at the beginning of the test; otherwise, false.isWifi()True if Wi-Fi is enabled at the beginning of the test; otherwise, false.voidsetBluetooth(Boolean bluetooth) True if Bluetooth is enabled at the beginning of the test; otherwise, false.voidTrue if GPS is enabled at the beginning of the test; otherwise, false.voidTrue if NFC is enabled at the beginning of the test; otherwise, false.voidTrue if Wi-Fi is enabled at the beginning of the test; otherwise, false.toString()Returns a string representation of this object; useful for testing and debugging.withBluetooth(Boolean bluetooth) True if Bluetooth is enabled at the beginning of the test; otherwise, false.True if GPS is enabled at the beginning of the test; otherwise, false.True if NFC is enabled at the beginning of the test; otherwise, false.True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
-
Constructor Details
-
Radios
public Radios()
-
-
Method Details
-
setWifi
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
- Parameters:
wifi- True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
-
getWifi
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
-
withWifi
-
isWifi
True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if Wi-Fi is enabled at the beginning of the test; otherwise, false.
-
setBluetooth
True if Bluetooth is enabled at the beginning of the test; otherwise, false.
- Parameters:
bluetooth- True if Bluetooth is enabled at the beginning of the test; otherwise, false.
-
getBluetooth
True if Bluetooth is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if Bluetooth is enabled at the beginning of the test; otherwise, false.
-
withBluetooth
True if Bluetooth is enabled at the beginning of the test; otherwise, false.
- Parameters:
bluetooth- True if Bluetooth is enabled at the beginning of the test; otherwise, false.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
isBluetooth
True if Bluetooth is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if Bluetooth is enabled at the beginning of the test; otherwise, false.
-
setNfc
True if NFC is enabled at the beginning of the test; otherwise, false.
- Parameters:
nfc- True if NFC is enabled at the beginning of the test; otherwise, false.
-
getNfc
True if NFC is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if NFC is enabled at the beginning of the test; otherwise, false.
-
withNfc
-
isNfc
True if NFC is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if NFC is enabled at the beginning of the test; otherwise, false.
-
setGps
True if GPS is enabled at the beginning of the test; otherwise, false.
- Parameters:
gps- True if GPS is enabled at the beginning of the test; otherwise, false.
-
getGps
True if GPS is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if GPS is enabled at the beginning of the test; otherwise, false.
-
withGps
-
isGps
True if GPS is enabled at the beginning of the test; otherwise, false.
- Returns:
- True if GPS is enabled at the beginning of the test; otherwise, false.
-
toString
-
equals
-
hashCode
-
clone
-