GolfShotEvent
public final class GolfShotEvent extends ExerciseEvent
| java.lang.Object | ||
| ↳ | androidx.health.services.client.data.ExerciseEvent | |
| ↳ | androidx.health.services.client.data.GolfShotEvent |
An ExerciseEvent that contains information about Golf Shot events for the current exercise.
Summary
Nested types |
|---|
public final class GolfShotEvent.GolfShotSwingTypeGolf Shot Swing Types. |
Public constructors |
|---|
GolfShotEvent( |
Public methods |
|
|---|---|
boolean |
|
final @NonNull Duration |
|
final @NonNull GolfShotEvent.GolfShotSwingType |
The type of golf swing that was detected. |
int |
hashCode() |
@NonNull String |
toString() |
Public constructors
GolfShotEvent
Added in 1.1.0-alpha05
public GolfShotEvent(
@NonNull Duration durationSinceBoot,
@NonNull GolfShotEvent.GolfShotSwingType swingType
)
Public methods
getDurationSinceBoot
Added in 1.1.0-alpha05
public final @NonNull Duration getDurationSinceBoot()
Duration since device boot when the golf shot was detected.
getSwingType
Added in 1.1.0-alpha05
public final @NonNull GolfShotEvent.GolfShotSwingType getSwingType()
The type of golf swing that was detected.