UserActivityState


public final class UserActivityState


Types of user activity states.

Summary

Public fields

static final @NonNull UserActivityState

The user is asleep.

static final @NonNull UserActivityState

The user is currently exercising.

static final @NonNull UserActivityState

The user is awake but is not currently exercising.

static final @NonNull UserActivityState

The current activity state cannot be determined, or it is a new state that this library version is too old to recognize.

Public constructors

UserActivityState(int id, @NonNull String name)

Public methods

boolean
equals(Object other)
final int
final @NonNull String
int
@NonNull String

Public fields

USER_ACTIVITY_ASLEEP

public static final @NonNull UserActivityState USER_ACTIVITY_ASLEEP

The user is asleep.

USER_ACTIVITY_EXERCISE

public static final @NonNull UserActivityState USER_ACTIVITY_EXERCISE

The user is currently exercising.

USER_ACTIVITY_PASSIVE

public static final @NonNull UserActivityState USER_ACTIVITY_PASSIVE

The user is awake but is not currently exercising.

USER_ACTIVITY_UNKNOWN

public static final @NonNull UserActivityState USER_ACTIVITY_UNKNOWN

The current activity state cannot be determined, or it is a new state that this library version is too old to recognize.

Public constructors

UserActivityState

Added in 1.0.0
public UserActivityState(int id, @NonNull String name)

Public methods

equals

public boolean equals(Object other)

getId

Added in 1.0.0
public final int getId()

getName

Added in 1.0.0
public final @NonNull String getName()

hashCode

public int hashCode()

toString

public @NonNull String toString()