class GolfShotEvent : ExerciseEvent


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

Summary

Nested types

Golf Shot Swing Types.

Public constructors

GolfShotEvent(
    durationSinceBoot: Duration,
    swingType: GolfShotEvent.GolfShotSwingType
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Duration

Duration since device boot when the golf shot was detected.

GolfShotEvent.GolfShotSwingType

The type of golf swing that was detected.

Public constructors

GolfShotEvent

Added in 1.1.0-alpha02
GolfShotEvent(
    durationSinceBoot: Duration,
    swingType: GolfShotEvent.GolfShotSwingType
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

durationSinceBoot

Added in 1.1.0-alpha02
val durationSinceBootDuration

Duration since device boot when the golf shot was detected.

swingType

Added in 1.1.0-alpha02
val swingTypeGolfShotEvent.GolfShotSwingType

The type of golf swing that was detected.