Swan Location
data class SwanLocation(val latitude: Double, val longitude: Double, val accuracy: Double?, val timestamp: Long)
Geo coordinates supplied by the host app via Swan.updateLocation.
Mirrors RN's deviceDetails.location shape (RN src/index.tsx:1956-1963) verbatim so cross-platform tooling that parses the persisted credentials blob behaves the same on Android. The native port asks the host app to supply the values explicitly — the SDK does NOT bundle Geolocation as a dependency. Hosts that want a fetched location call their own provider (Google Play Services FusedLocationProvider, etc.) and then push the result here.
Properties
Link copied to clipboard
Capture timestamp in epoch milliseconds. Defaults to the SDK clock at Swan.updateLocation call time so host apps don't need to supply it. Mirrors RN's position.timestamp.