SwanDeviceInfo

data class SwanDeviceInfo(val platform: String, val osModal: Int, val deviceModal: String, val deviceBrand: String, val deviceId: String?, val generatedCDID: String?, val currentCDID: String?, val identifier: String?, val location: SwanLocation?)

Snapshot of the SDK's view of the host device.

Constructors

Link copied to clipboard
constructor(platform: String, osModal: Int, deviceModal: String, deviceBrand: String, deviceId: String?, generatedCDID: String?, currentCDID: String?, identifier: String?, location: SwanLocation?)

Properties

Link copied to clipboard

Logged-in customer id, set by Swan.identify on profile-switch success. null for anonymous users / post-logout.

Link copied to clipboard

Build.BRAND (e.g. "google"). Matches the deviceBrand wire field.

Link copied to clipboard

Persisted device id from the /v2/device/register response. null until the first device-register round-trip completes.

Link copied to clipboard

Build.MODEL (e.g. "Pixel 7"). Matches the deviceModal wire field.

Link copied to clipboard

Anonymous customer-derived id minted by the backend at device-register time. null until the first device-register completes.

Link copied to clipboard

External user identifier last asserted via Swan.identify. null for anonymous users / post-logout.

Link copied to clipboard

Last-known device location, if any. null until Swan.updateLocation has been called at least once. The fields mirror the wire shape RN persists in deviceDetails.location ({latitude, longitude, accuracy, timestamp}) — see SwanLocation kdoc.

Link copied to clipboard

Android API level (e.g. 33). Matches the osModal wire field.

Link copied to clipboard

Always "android" on this platform.