ClaimrClient object maintains the connection with the API.
The API key to use when sending requests to the ClaimR API. You can get one at the ClaimR Dashboard.
useLazyVerifiedLocation hook is used to verify a user's location.
As it's lazy, the user needs to manually invoke it to send the request to the ClaimR API.
This can be done by calling the
submit function once its defined by the hook.
The hook tracks its state using the following state machine:
The machine is initially in the
registeringListener state, when it successfully registers the listener it will switch to the
Once enough raw GNSS data has been collected, it will move to
In every state which has an outgoing edge with
submit you can request the location to get verified.
An iteractive version of the state machine can be explored here.
|The current state of this location verification hook.|
|Callback to submit the location verification request to the ClaimR API. It will be |
| ||Contains the validated location results from the ClaimR API. Only available after |
|Similar to |
|An optional message returned from the ClaimR API. Only used to retrieve the error message.|