Skip to content

Instantly share code, notes, and snippets.

@tssandor
Created February 15, 2022 07:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tssandor/f70e947ec157d4eac53405b1d3126427 to your computer and use it in GitHub Desktop.
Save tssandor/f70e947ec157d4eac53405b1d3126427 to your computer and use it in GitHub Desktop.
// USE Constans.PRIORITY_HIGH_ACCURACY:
// to request the most accurate locations available.
// This will return the finest location available.
// OR Constans.PRIORITY_BALANCED_POWER_ACCURACY:
// to request "block" level accuracy.
// Block level accuracy is considered to be about 100 meter accuracy.
// Using a coarse accuracy such as this often consumes less power.
Client.getInstance().startTrackingLocation(this,
activityResultRegistry,
Constants.PRIORITY_BALANCED_POWER_ACCURACY,
object : GeneralCallback {
override fun onSuccess(data: String) {
}
override fun onError(result: String) {
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment