Swan Device Info
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.
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
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.