NearbyRadioStatus

Whether one radio is usable by the Nearby Connections fabric — not a raw hardware reading.

The distinction matters for Unsupported: a device whose Play services runtime is missing or out of date has perfectly good radios that this fabric nonetheless cannot drive, and the honest report is that they are not usable here. GmsNearbyApi folds that check in before reading either radio, so a NearbyRadioState is always "what can Nearby actually do right now".

Entries

Link copied to clipboard

Powered and usable by Nearby Connections.

Link copied to clipboard

Present and usable in principle, but currently switched off.

Link copied to clipboard

This device cannot use the radio for Nearby — no hardware, or no Play services runtime.

Link copied to clipboard

Not readable right now — e.g. the runtime permission guarding it has not been granted.

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.