-
Notifications
You must be signed in to change notification settings - Fork 40
Customizations
Birju Vachhani edited this page Sep 23, 2019
·
4 revisions
fastestInterval = 1000
priority = LocationRequest.PRIORITY_HIGH_ACCURACY
interval = 1000
maxWaitTime = 2000
rationale=Text = "Location permission is required in order to use this feature properly.Please grant the permission."
blockedText = "Location permission is blocked. Please allow permission from settings screen to use this feature"
Here, request is provides a lambda block to configure LocationRequest.
Locus.configure {
request {
fastestInterval = 1000
priority = LocationRequest.PRIORITY_HIGH_ACCURACY
interval = 1000
maxWaitTime = 2000
}
}
Locus.configure {
rationaleText = "This is custom rationale text."
}
Locus.configure {
blockedText = "This is custom permission blocked dialog text."
}
Locus.configure {
enableBackgroundUpdates = true // default: true
}
Locus.configure {
enableBackgroundUpdates = true // default: false
}
Locus.configure {
forceBackgroundUpdates = true // default: false
}
Locus.setDefaultConfig()