Tizen Native API  7.0
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>
#include <device/ir.h>
#include <device/temperature.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
  • IR
  • Temperature

Enumeration Type Documentation

Enumeration for device's error code.

Since :
2.3
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_RESOURCE_BUSY 

Device or resource busy

DEVICE_ERROR_NOT_INITIALIZED 

Not initialized