Knox Tizen Wearable SDK
Location policy group

Location policy group provides policies for location control. More...

Functions

mdm_result_t mdm_start_gps (bool start)
 Function on/off GPS on the device. More...
 
mdm_status_t mdm_is_gps_on (void)
 Function to status of GPS. More...
 

Detailed Description

Location policy group provides policies for location control.

Location policy group.

Required Header

#include <mdm.h>

Overview

This group provides APIs to set location restrictions.

Function Documentation

mdm_status_t mdm_is_gps_on ( void  )

Function to status of GPS.

Since (Knox_wearable):
1.0.0
Since (Tizen):
2.3.2.3
Feature:
http://developer.samsung.com/tizen/feature/mdm
Usage:
Helper function to get actual status of the GPS on the device.
if (ret == ...) {
....
} else {
....
}
Returns
mdm_status_t : Whether GPS is on
Return values
MDM_TRUEGPS is on
MDM_FALSEGPS is off
MDM_STATUS_ERRORError.
See also
mdm_start_gps
mdm_result_t mdm_start_gps ( bool  start)

Function on/off GPS on the device.

Since (Knox_wearable):
1.0.0
Since (Tizen):
2.3.2.3
Feature:
http://developer.samsung.com/tizen/feature/mdm
Usage:
Helper function to stop/start GPS on the device.
...
...
} else {
...
}
...
Parameters
[in]startTrue to start GPS, false to stop GPS.
Returns
mdm_result_t : MDM_RESULT_SUCCESS on success, an error code on error
Return values
MDM_RESULT_SUCCESSSuccessful
MDM_RESULT_FAILGeneral failure
MDM_RESULT_NOT_SUPPORTEDNot supported
MDM_RESULT_INVALID_PARAMInvalid parameter
MDM_RESULT_ACCESS_DENIEDThe application does not have the privilege to call this function.
See also
mdm_is_gps_on