LocationAvailability


public final class LocationAvailability implements Availability


Availability of a DataType.LOCATION data type.

Summary

Public fields

static final @NonNull LocationAvailability

Acquired location through connected phone.

static final @NonNull LocationAvailability

Acquired location through watch.

static final @NonNull LocationAvailability

Acquiring location.

static final @NonNull LocationAvailability

The on-device location service is disabled, so location cannot be acquired.

static final @NonNull LocationAvailability

Location is not available.

static final @NonNull LocationAvailability

The availability is unknown, or is represented by a value too new for this library version to parse.

Public methods

boolean
equals(Object other)
static final LocationAvailability
fromId(int id)
int
final @NonNull String
int
@NonNull String

Public fields

ACQUIRED_TETHERED

public static final @NonNull LocationAvailability ACQUIRED_TETHERED

Acquired location through connected phone.

ACQUIRED_UNTETHERED

public static final @NonNull LocationAvailability ACQUIRED_UNTETHERED

Acquired location through watch.

ACQUIRING

public static final @NonNull LocationAvailability ACQUIRING

Acquiring location.

NO_GNSS

public static final @NonNull LocationAvailability NO_GNSS

The on-device location service is disabled, so location cannot be acquired.

UNAVAILABLE

public static final @NonNull LocationAvailability UNAVAILABLE

Location is not available.

UNKNOWN

public static final @NonNull LocationAvailability UNKNOWN

The availability is unknown, or is represented by a value too new for this library version to parse.

Public methods

equals

public boolean equals(Object other)

fromId

Added in 1.0.0
public static final LocationAvailability fromId(int id)

getId

Added in 1.1.0-alpha04
public int getId()

getName

Added in 1.0.0
public final @NonNull String getName()

hashCode

public int hashCode()

toString

public @NonNull String toString()