public final class GolfShotEvent extends ExerciseEvent


An ExerciseEvent that contains information about Golf Shot events for the current exercise.

Summary

Nested types

Golf Shot Swing Types.

Public constructors

GolfShotEvent(
    @NonNull Duration durationSinceBoot,
    @NonNull GolfShotEvent.GolfShotSwingType swingType
)

Public methods

boolean
equals(Object other)
final @NonNull Duration

Duration since device boot when the golf shot was detected.

final @NonNull GolfShotEvent.GolfShotSwingType

The type of golf swing that was detected.

int
@NonNull String

Public constructors

GolfShotEvent

Added in 1.1.0-alpha02
public GolfShotEvent(
    @NonNull Duration durationSinceBoot,
    @NonNull GolfShotEvent.GolfShotSwingType swingType
)

Public methods

equals

public boolean equals(Object other)

getDurationSinceBoot

Added in 1.1.0-alpha02
public final @NonNull Duration getDurationSinceBoot()

Duration since device boot when the golf shot was detected.

getSwingType

Added in 1.1.0-alpha02
public final @NonNull GolfShotEvent.GolfShotSwingType getSwingType()

The type of golf swing that was detected.

hashCode

public int hashCode()

toString

public @NonNull String toString()