geolocation_set_passive()

Set whether the location request should be passive.

Synopsis:

#include <bps/geolocation.h>
 
BPS_API void geolocation_set_passive(bool passive)

Since:

BlackBerry 10.2.0

Arguments:

passive

The passive flag. Set to true to set the passive flag on a request; false otherwise.

Library:

libbps (For the qcc command, use the -l bps option to link against this library)

Description:

The geolocation_set_passive() function sets the passive flag in a location request. A passive request will receive fixes (as geolocation events) only if there are one or more non-passive location requests being serviced on the device. This includes non-passive location requests made in other processes.

Returns:

Last modified: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus