@DeprecatedSince(2020, 12) open class LocationRequestsFactory
Factory to create various location request, that differs with location update time and accuracy to save the user battery. In some cases, the user may not need too frequent updates.
open static fun
Static method used for creating new instance of location request factory. |
|
open fun
Driving location request provides updates with the highest available accuracy. The update time is set to 2 seconds. |
|
open fun
Map location request provides updates with the highest available accuracy. The update time is set to 5 seconds. |
|
open fun
Search location request provides updates with less accuracy, taking power consumption into account. The location update time is set to 5 seconds. Using this, you got less frequent updates, but the battery consumption is relatively low. |