The Display API provides functions to control display.
Required Header
#include <camera.h>
Overview
The Display API allows you to manage display for the camera. This API provides you with functions that set and get various display properties :
-
rotation
-
display visibility
-
display mode
Related Features
This API is related with the following features:
It is recommended to design feature related codes in your application for reliability.
You can check if a device supports the related features for this API by using System Information, thereby controlling the procedure of your application.
To ensure your application is only running on the device with specific features, please define the features in your manifest file using the manifest editor in the SDK.
More details on featuring your application can be found from Feature Element.
Enumeration Type Documentation
Enumeration for the camera display mode.
- Since :
- 2.3.1
- Enumerator:
CAMERA_DISPLAY_MODE_LETTER_BOX |
Letter box
|
CAMERA_DISPLAY_MODE_ORIGIN_SIZE |
Origin size
|
CAMERA_DISPLAY_MODE_FULL |
Full screen
|
CAMERA_DISPLAY_MODE_CROPPED_FULL |
Cropped full screen
|
Function Documentation
Gets the display flip.
- Since :
- 2.3.1
- Parameters:
-
[in] | camera | The handle to the camera |
[out] | flip | The display flip |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
- See also:
- camera_set_display_flip()
Gets the display mode.
- Since :
- 2.3.1
- Parameters:
-
[in] | camera | The handle to the camera |
[out] | mode | The display mode |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
- See also:
- camera_set_display_mode()
Gets the display rotation.
- Since :
- 2.3.1
- Parameters:
-
[in] | camera | The handle to the camera |
[out] | rotation | The display rotation |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
- See also:
- camera_set_display_rotation()
Gets the visible property of display.
- Since :
- 2.3.1
- Parameters:
-
[in] | camera | The handle to the camera |
[out] | visible | true if camera display is visible, otherwise false |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
- See also:
- camera_set_display_visible()
Sets the display flip.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Parameters:
-
[in] | camera | The handle to the camera |
[in] | flip | The display flip |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
- See also:
- camera_get_display_flip()
Sets the display mode.
- Since :
- 2.3.1
- Parameters:
-
[in] | camera | The handle to the camera |
[in] | mode | The display mode |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
- See also:
- camera_get_display_mode()
Sets the display rotation.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Parameters:
-
[in] | camera | The handle to the camera |
[in] | rotation | The display rotation |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
- See also:
- camera_start_preview()
-
camera_get_display_rotation()
Sets the visible property for display.
- Since :
- 2.3.1
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/camera
- Parameters:
-
[in] | camera | The handle to the camera |
[in] | visible | The display visibility property |
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
- See also:
- camera_is_display_visible()