LocationClient constructor.
startRoutineBatchingSession
Starts a routine mode batching session with specified parameters.- If this API is called when idle, or after any other previous position/batching/geofence session is stopped, it delivers one of the following results:
- If
batchingCallbackisnullptr, this call is a no-op. - If both
minIntervalandtripDistancedo not take effect, this call is a no-op. Otherwise a batching session is started with the specified parameters and callbacks.
- If
- If this API is called when any previous position/batching/geofence session hasn’t yet received
responseCallback, then this API receives an error code ofLOCATION_RESPONSE_REQUEST_ALREADY_IN_PROGRESSvia itsresponseCallback. - If this API is called during an ongoing session after the
responseCallbackhas been received for the ongoing session, the parameters/callback will be updated, and the session continues but with a new set of parameters/callback. - Locations are reported on the
batchingCallbackin batches when the batch is full.
Response
Returns
true if a batching session is successfully started.
Returns false if a batching session isn’t started, that is, when batchingCallback is nullptr.

