DeviceType

The health-data source a member's SmartWalking device reports through.

Pass the value that matches the platform you're connecting when registering a device (e.g. APPLE_HEALTH from connectAppleHealthKit, HEALTH_CONNECT from connectGoogleHealthConnect); the SDK records it on the server so steps are attributed to the correct source. Each entry maps to a backend serverName wire string — decode server responses with fromServerName rather than valueOf, since the wire names differ from the enum names.

Entries

Link copied to clipboard

Apple HealthKit (iOS / watchOS). Serializes as "IOS".

Link copied to clipboard

Android Health Connect. Serializes as "HEALTHCONNECT".

Link copied to clipboard

Legacy Google Fit source. Serializes as "ANDROID".

Link copied to clipboard

Fitbit-sourced steps. Serializes as "FITBIT".

Link copied to clipboard

Any other / unspecified source. Serializes as "OTHER".

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
expect val name: String
Link copied to clipboard
expect val ordinal: Int
Link copied to clipboard

The identifier the backend uses for this source. Note the names are historical and do not match the enum names — e.g. APPLE_HEALTH serializes as "IOS" and GOOGLE_FIT as "ANDROID".

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.