Location-change API
Interface: Companion
The Companion interface provides information about the running companion application, access to permissions, environment information and oAuth access tokens.
Properties
monitorSignificantLocationChanges
boolean
Flag that indicates whether the application would like to be woken up upon significant location changes or not.
An application should set it to true
to be woken up, or false
to ignore significant location changes.
When an application is woken up by a significant location change, the launchReasons locationChanged property will be set to the GPS Position that triggered the waking up.
onsignificantlocationchange
((this: Companion, event: SignificantLocationChangeEvent) => any) or undefined
Event handler invoked when a significant location change occurs while the application is running and has indicated that it wants to monitor significant location changes.