trackLocation

open fun trackLocation(@NonNull location: Location)

Track a location update. You can call this method from any thread. Batch must be started at some point, or location updates won't be sent to the server. The location object usually comes from the location system service, or the Fused Location API, but can also manually create it. If you manually create it, please make sure to fill the accuracy and date if you have that data: both of these values are used to improve the targeting.

Parameters

location

The location. Can't be null.