Provides options for location monitoring.

Hierarchy

  • Options

Properties

activityType?: any

iOS only

allowsBackgroundLocationUpdates?: boolean

iOS only

deferredLocationUpdates?: {
    timeout: number;
    traveled: number;
}

iOS only

Type declaration

  • timeout: number
  • traveled: number
desiredAccuracy?: number

Specifies desired accuracy in meters. Defaults to DesiredAccuracy.HIGH

dontOpenSettings?: boolean

monitor the location in the background.

maximumAge?: number

how old locations to receive in ms.

minimumUpdateTime?: number

Minimum time interval between location updates, in milliseconds.

nmeaAltitude?: boolean
onLocationPaused?: (() => void)

Type declaration

    • (): void
    • Returns void

pausesLocationUpdatesAutomatically?: boolean

iOS only

provider?: "gps" | "network" | "passive"

android only

skipPermissionCheck?: boolean

monitor the location in the background.

timeout?: number

how long to wait for a location in ms.

updateDistance?: number

Update distance filter in meters. Specifies how often to update. Default on iOS is no filter, on Android it is 0 meters

Generated using TypeDoc