ExerciseStateInfo


public final class ExerciseStateInfo


Wrapper class for accessing ExerciseState and ExerciseEndReason.

Summary

Public constructors

ExerciseStateInfo(
    @NonNull ExerciseState exerciseState,
    int exerciseEndReason
)

Public constructors

ExerciseStateInfo

Added in 1.0.0
public ExerciseStateInfo(
    @NonNull ExerciseState exerciseState,
    int exerciseEndReason
)

Public methods

equals

public boolean equals(Object other)

getEndReason

Added in 1.0.0
public final int getEndReason()

The ExerciseEndReason if state is ExerciseState.ENDED, otherwise ExerciseEndReason.UNKNOWN.

getState

Added in 1.0.0
public final @NonNull ExerciseState getState()

The ExerciseState. If set to ExerciseState.ENDED, the endReason property will contain why it was ended.

hashCode

public int hashCode()

toString

public @NonNull String toString()