* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
- DEVICE_BATTERY_LEVEL_EMPTY = 0, /**< The battery goes empty. Prepare for the safe termination of the application, because the device starts a shutdown process soon after entering this level. */
- DEVICE_BATTERY_LEVEL_CRITICAL, /**< The battery charge is at a critical state. You may have to stop using multimedia features, because they are not guaranteed to work correctly at this battery status. */
- DEVICE_BATTERY_LEVEL_LOW, /**< The battery has little charge left. */
- DEVICE_BATTERY_LEVEL_HIGH, /**< The battery status is not to be careful. */
- DEVICE_BATTERY_LEVEL_FULL, /**< The battery status is fully charged. It means no more charge. */
+ DEVICE_BATTERY_LEVEL_EMPTY = 0, /**< The battery goes empty. Prepare for the safe termination of the application, because the device starts a shutdown process soon after entering this level. */
+ DEVICE_BATTERY_LEVEL_CRITICAL, /**< The battery charge is at a critical state. You may have to stop using multimedia features, because they are not guaranteed to work correctly at this battery status. */
+ DEVICE_BATTERY_LEVEL_LOW, /**< The battery has little charge left. */
+ DEVICE_BATTERY_LEVEL_HIGH, /**< The battery status is not to be careful. */
+ DEVICE_BATTERY_LEVEL_FULL, /**< The battery status is fully charged. It means no more charge. */
} device_battery_level_e;
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
- DEVICE_CALLBACK_BATTERY_CAPACITY, /**< Called when a battery charge percentage is changed */
- DEVICE_CALLBACK_BATTERY_LEVEL, /**< Called when a battery level is changed */
- DEVICE_CALLBACK_BATTERY_CHARGING, /**< Called when battery charging state is changed */
- DEVICE_CALLBACK_DISPLAY_STATE, /**< Called when a display state is changed */
- DEVICE_CALLBACK_FLASH_BRIGHTNESS, /**< Called when a flash brightness is changed (Since Tizen @if Mobile 2.4 @elseif WEARABLE 3.0 @endif) */
- DEVICE_CALLBACK_MAX
+ DEVICE_CALLBACK_BATTERY_CAPACITY, /**< Called when a battery charge percentage is changed */
+ DEVICE_CALLBACK_BATTERY_LEVEL, /**< Called when a battery level is changed */
+ DEVICE_CALLBACK_BATTERY_CHARGING, /**< Called when battery charging state is changed */
+ DEVICE_CALLBACK_DISPLAY_STATE, /**< Called when a display state is changed */
+ DEVICE_CALLBACK_FLASH_BRIGHTNESS, /**< Called when a flash brightness is changed (Since Tizen @if Mobile 2.4 @elseif WEARABLE 3.0 @endif) */
+ DEVICE_CALLBACK_MAX
} device_callback_e;
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
- * limitations under the License.
+ * limitations under the License.
*/
int device_get_brightness(int display_index, int *brightness);
/**
- * @brief Sets the display brightness value.
+ * @brief Sets the display brightness value.
*
* @param[in] display_index The index of the display, it be greater than or equal to 0 and less than \n
* the number of displays returned by device_get_display_numbers().\n
* The index zero is always assigned to the main display.
* @param[in] brightness The new brightness value to set \n
* The maximum value can be represented by device_get_max_brightness()
- *
+ *
* @return 0 on success, otherwise a negative error value.
* @retval #DEVICE_ERROR_NONE Successful
* @retval #DEVICE_ERROR_INVALID_PARAMETER Invalid parameter
int device_set_brightness(int display_index, int brightness);
/**
- * @brief Gets the maximum brightness value that can be set.
+ * @brief Gets the maximum brightness value that can be set.
*
* @param[in] display_index The index of the display, it be greater than or equal to 0 and less than \n
* the number of displays returned by device_get_display_numbers().\n
* @brief Enumeration for the available display states.
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
-typedef enum
-{
- DISPLAY_STATE_NORMAL, /**< Normal state */
- DISPLAY_STATE_SCREEN_DIM, /**< @if TV @internal @endif Screen dim state */
- DISPLAY_STATE_SCREEN_OFF, /**< Screen off state */
+typedef enum {
+ DISPLAY_STATE_NORMAL, /**< Normal state */
+ DISPLAY_STATE_SCREEN_DIM, /**< @if TV @internal @endif Screen dim state */
+ DISPLAY_STATE_SCREEN_OFF, /**< Screen off state */
} display_state_e;
* @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
*/
typedef enum {
- LED_CUSTOM_DUTY_ON = 1 << 0, /**< blink LED */
- LED_CUSTOM_DEFAULT = (LED_CUSTOM_DUTY_ON), /**< Default flag */
+ LED_CUSTOM_DUTY_ON = 1 << 0, /**< blink LED */
+ LED_CUSTOM_DEFAULT = (LED_CUSTOM_DUTY_ON), /**< Default flag */
} led_custom_flags;
* @remarks You cannot combine with an enum below.
*/
typedef enum {
- POWER_LOCK_CPU, /**< CPU lock */
- POWER_LOCK_DISPLAY, /**< Display normal lock (Deprecated since @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif. Use efl_util_set_window_screen_mode() instead) */
- POWER_LOCK_DISPLAY_DIM, /**< Display dim lock (Deprecated since @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif. Use efl_util_set_window_screen_mode() instead) */
+ POWER_LOCK_CPU, /**< CPU lock */
+ POWER_LOCK_DISPLAY, /**< Display normal lock (Deprecated since @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif. Use efl_util_set_window_screen_mode() instead) */
+ POWER_LOCK_DISPLAY_DIM, /**< Display dim lock (Deprecated since @if MOBILE 2.4 @elseif WEARABLE 3.0 @endif. Use efl_util_set_window_screen_mode() instead) */
} power_lock_e;
free(profileName);
return profile;
-}
\ No newline at end of file
+}