java.lang.Object | |
↳ | com.google.android.gms.location.LocationSettingsRequest.Builder |
A builder that builds LocationSettingsRequest
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a collection of
LocationRequests that the client is
interested in.
| |||||||||||
Adds one
LocationRequest that the client is interested in.
| |||||||||||
Creates a LocationSettingsRequest that can be used with
SettingsApi .
| |||||||||||
Always show the dialog, without the "Never" option to suppress future dialogs from this
app.
| |||||||||||
Sets whether the client wants BLE scan to be enabled.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Adds a collection of LocationRequests
that the client is
interested in. Settings will be checked for optimal performance of all
LocationRequests
.
Adds one LocationRequest
that the client is interested in.
Settings will be checked for optimal performance of all
LocationRequests
.
Creates a LocationSettingsRequest that can be used with SettingsApi
.
Always show the dialog, without the "Never" option to suppress future dialogs from this app. When this flag is set to true, the dialog will show up if the location settings do not satisfy the request, even if a user has previously chosen "Never". NOTE: Only use this method if your dialog is the result of an explicit user-initiated action that requires location to proceed. Canceling this dialog should also cancel the initiated action.
Sets whether the client wants BLE scan to be enabled. When this flag is set to true, if the platform supports BLE scan mode and Bluetooth is off, the dialog will prompt the user to enable BLE scan. If the platform doesn't support BLE scan mode, the dialog will prompt to enable Bluetooth.