Mobile native Wearable native

Runtime information

The capi-system-runtime-info enables your application to get various runtime information.

To obtain the information, query a runtime info key. The keys are listed in the following table.

Table: Runtime information keys
Key Type Description
RUNTIME_INFO_KEY_BLUETOOTH_ENABLED bool Indicates whether Bluetooth is enabled.
RUNTIME_INFO_KEY_WIFI_HOTSPOT_ENABLED bool Indicates whether a Wi-Fi hotspot is enabled.
RUNTIME_INFO_KEY_BLUETOOTH_TETHERING_ENABLED bool Indicates whether Bluetooth tethering is enabled.
RUNTIME_INFO_KEY_USB_TETHERING_ENABLED bool Indicates whether USB tethering is enabled.
RUNTIME_INFO_KEY_LOCATION_SERVICE_ENABLED bool Indicates whether the location service is allowed to use location data from GPS satellites.
RUNTIME_INFO_KEY_LOCATION_NETWORK_POSITION_ENABLED bool Indicates whether the location service is allowed to use location data from cellular and Wi-Fi.
RUNTIME_INFO_KEY_PACKET_DATA_ENABLED bool Indicates whether the packet data through 3G network is enabled.
RUNTIME_INFO_KEY_DATA_ROAMING_ENABLE bool Indicates whether data roaming is enabled.
RUNTIME_INFO_KEY_VIBRATION_ENABLED bool Indicates whether vibration is enabled.
RUNTIME_INFO_KEY_AUDIO_JACK_CONNECTED bool Indicates whether an audio jack is connected.
RUNTIME_INFO_KEY_GPS_STATUS int Indicates the current status of GPS.
RUNTIME_INFO_KEY_BATTERY_IS_CHARGING bool Indicates whether the battery is currently charging.
RUNTIME_INFO_KEY_TV_OUT_CONNECTED bool Indicates whether TV out is connected.
RUNTIME_INFO_KEY_AUDIO_JACK_STATUS int Indicates the current status of the audio jack.
RUNTIME_INFO_KEY_USB_CONNECTED bool Indicates whether USB is connected.
RUNTIME_INFO_KEY_CHARGER_CONNECTED bool Indicates whether a charger is connected.
RUNTIME_INFO_KEY_AUTO_ROTATION_ENABLED bool Indicates whether auto-rotation is enabled.
Go to top