Tizen Native API
Device

The DEVICE API provides functions to control devices or to get status of devices.

Required Header

#include <device/battery.h>
#include <device/callback.h>
#include <device/display.h>
#include <device/haptic.h>
#include <device/led.h>
#include <device/power.h>

Overview

The DEVICE API provides functions to control devices or to get status of devices.

This API allows checking of the following parameters:

  • Battery
  • Display
  • Haptic
  • LED
  • Power

Enumeration Type Documentation

Enumerations of error code for Device.

Since :
2.3.1
Enumerator:
DEVICE_ERROR_NONE 

Successful

DEVICE_ERROR_OPERATION_FAILED 

Operation not permitted

DEVICE_ERROR_PERMISSION_DENIED 

Permission denied

DEVICE_ERROR_INVALID_PARAMETER 

Invalid parameter

DEVICE_ERROR_ALREADY_IN_PROGRESS 

Operation already in progress

DEVICE_ERROR_NOT_SUPPORTED 

Not supported in this device

DEVICE_ERROR_NOT_INITIALIZED 

Not initialized