geolocation_set_last_known()

Set whether or not the last known position will be returned.

Synopsis:

#include <bps/geolocation.h>
 
BPS_API void geolocation_set_last_known(bool last_known)

Since:

BlackBerry 10.0.0

Arguments:

last_known

True means the last known position will be returned, otherwise it will not.

Library:

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

Description:

The geolocation_set_last_known() function sets whether or not the last known position will be returned. If set, only one geolocation event will be reported, but it will be reported immediately. It will either be a GEOLOCATION_INFO event containing the last known position or a GEOLOCATION_ERROR event if there is no last known position. You may set the provider with geolocation_set_provider(), but any other parameters will be ignored.

Returns:

Last modified: 2014-05-14



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

comments powered by Disqus