Tizen Native API
6.5
|
This provides APIs related to take snapshots.
Functions | |
int | maps_view_capture_snapshot (maps_view_h view, maps_view_snapshot_format_type_e type, int quality, const char *path) |
Captures a snapshot of the Map View. The request is synchronous. | |
Typedefs | |
typedef enum _maps_view_snapshot_format_type_e | maps_view_snapshot_format_type_e |
Enumeration for snapshot file format type. |
Typedef Documentation
Enumeration for snapshot file format type.
- Since :
- 2.3.2
Enumeration Type Documentation
Function Documentation
int maps_view_capture_snapshot | ( | maps_view_h | view, |
maps_view_snapshot_format_type_e | type, | ||
int | quality, | ||
const char * | path | ||
) |
Captures a snapshot of the Map View.
The request is synchronous.
This function retrieves an image of a map currently represented on the Map View.
- Since :
- 2.3.2
- Privilege Level:
- public
- Privilege:
- http://tizen.org/privilege/mapservice
- Remarks:
- To check if Maps Provider is capable of capturing snapshots use maps_service_provider_is_service_supported() with MAPS_SERVICE_VIEW_SNAPSHOT passed as service parameter.
It returns MAPS_ERROR_PERMISSION_DENIED if application doesn't have permission to write to the path.
- Parameters:
-
[in] view The Map View handle [in] type The type of file format [in] quality The quality for encoding (1~100) [in] path The file path to be created callback function
- Returns:
0
on success, otherwise a negative error value
- Return values:
-
MAPS_ERROR_NONE Successful MAPS_ERROR_INVALID_PARAMETER Invalid parameter MAPS_ERROR_SERVICE_NOT_AVAILABLE Service not available MAPS_ERROR_PERMISSION_DENIED Permission Denied MAPS_ERROR_INVALID_OPERATION Operation is not valid MAPS_ERROR_NOT_SUPPORTED Not supported
- Precondition:
- Call maps_service_create() and map_view_create() to issue Maps Service and Map View handles respectively.
- See also:
- maps_view_create()
- maps_service_create()