Tizen Native API
Device
System

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:


Enumeration Type Documentation

Enumerations of error code for Device.

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


Except as noted, this content - excluding the Code Examples - is licensed under Creative Commons Attribution 3.0 and all of the Code Examples contained herein are licensed under BSD-3-Clause.
For details, see the Content License