java.lang.Object |
↳ |
com.google.android.gms.location.LocationSettingsRequest.Builder |
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
public
LocationSettingsRequest.Builder
()
Public Methods
Adds a collection of LocationRequests
that the client is
interested in. Settings will be checked for optimal performance of all
LocationRequests
.
Parameters |
requests |
Collection
|
Adds one LocationRequest
that the client is interested in.
Settings will be checked for optimal performance of all
LocationRequests
.
Parameters |
request |
LocationRequest
|
Creates a LocationSettingsRequest that can be used with SettingsApi
.
Whether or not location is required by the calling app in order to continue. Set this to
true if location is required to continue and false if having location provides better
results, but is not required. This changes the wording/appearance of the dialog
accordingly.
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.
Parameters |
needBle |
boolean
|