Skip to content

ActivityChangeEvent

public structActivityChangeEvent: Sendable

Activity recognition result delivered to BGGeo.onActivityChange.

The SDK fires this event each time the device's motion-activity classifier detects a change in the current activity type (e.g. from still to on_foot). The event includes both the detected activity and the classifier's confidence level.


Members

activity

public let activity: String

Detected motion activity type (e.g. still, on_foot, in_vehicle).

confidence

public let confidence: Int

Confidence of the detected activity as a percentage (0100).