An interface for objects that provide a position.
This interface allows objects to provide a position that can change over time, with subscribers being notified of changes.
Readonly
The current position.
A null value indicates that the position is not available.
null
Subscribes to position updates.
The callback to call when the position changes.
A function to unsubscribe from the position updates.
The callback function is not called until the position provider produces a new position: use currentPosition to get the current position.
An interface for objects that provide a position.
Remarks
This interface allows objects to provide a position that can change over time, with subscribers being notified of changes.