Enum Class DittoTransportCondition
- All Implemented Interfaces:
Serializable,Comparable<DittoTransportCondition>,Constable
Represents the operational condition of a Ditto transport.
This enum describes the current state of a transport mechanism, indicating whether it is functioning normally or experiencing issues that prevent connectivity.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe application is in the background, affecting transport availability.Bluetooth is disabled on the device.Unable to establish a connection with the remote peer.The transport has encountered a generic failure.The mDNS (Multicast DNS) service has failed.The application lacks permission to use Bluetooth LE in central mode.The device does not have Bluetooth hardware.The application lacks permission to use Bluetooth LE in peripheral mode.The transport is operating normally with no known issues.Failed to establish a TCP listening socket.The transport is temporarily unavailable.The transport condition is unknown or could not be determined.Wi-Fi is disabled on the device. -
Method Summary
Modifier and TypeMethodDescriptionstatic DittoTransportConditionReturns the enum constant of this class with the specified name.static DittoTransportCondition[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
UNKNOWN
The transport condition is unknown or could not be determined. -
OK
The transport is operating normally with no known issues. -
GENERIC_FAILURE
The transport has encountered a generic failure.
This indicates an unspecified error condition that doesn't fall into any of the more specific failure categories.
-
APP_IN_BACKGROUND
The application is in the background, affecting transport availability.
Some transports may have reduced functionality or be unavailable when the application is not in the foreground.
-
MDNS_FAILURE
The mDNS (Multicast DNS) service has failed.
This affects the ability to discover peers on the local network.
-
TCP_LISTEN_FAILURE
Failed to establish a TCP listening socket.
This prevents the device from accepting incoming TCP connections.
-
NO_BLE_CENTRAL_PERMISSION
The application lacks permission to use Bluetooth LE in central mode.
Central mode is required for scanning and connecting to other devices.
-
NO_BLE_PERIPHERAL_PERMISSION
The application lacks permission to use Bluetooth LE in peripheral mode.
Peripheral mode is required for advertising and accepting connections from other devices.
-
CANNOT_ESTABLISH_CONNECTION
Unable to establish a connection with the remote peer.
This indicates a connection attempt failed, possibly due to network issues or the remote peer being unavailable.
-
BLE_DISABLED
Bluetooth is disabled on the device.
Bluetooth must be enabled for BLE transports to function.
-
NO_BLE_HARDWARE
The device does not have Bluetooth hardware.
This device cannot use BLE transports.
-
WIFI_DISABLED
Wi-Fi is disabled on the device.
Wi-Fi must be enabled for Wi-Fi Aware and other Wi-Fi-based transports to function.
-
TEMPORARILY_UNAVAILABLE
The transport is temporarily unavailable.
This is a transient condition that may resolve on its own. The transport may become available again without intervention.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-