Tizen Native API
5.5
|
The App Control API provides functions to launch other applications.
#include <app_control.h>
Functions | |
int | app_control_create (app_control_h *app_control) |
Creates an app_control handle. | |
int | app_control_create_with_parameters (app_control_h *app_control, const char *operation, const char *uri, const char *mime, const char *category, const char *app_id, app_control_launch_mode_e mode, int extra_data_count,...) |
Creates an app_control handle and sets its attributes. | |
int | app_control_create_from_uri_handle (app_control_h *app_control, app_control_uri_h uri) |
Creates an app_control handle from an app_control_uri handle. | |
int | app_control_destroy (app_control_h app_control) |
Destroys the app_control handle and releases all its resources. | |
int | app_control_set_operation (app_control_h app_control, const char *operation) |
Sets the operation to be performed. | |
int | app_control_get_operation (app_control_h app_control, char **operation) |
Gets the operation to be performed. | |
int | app_control_set_uri (app_control_h app_control, const char *uri) |
Sets the URI of the data. | |
int | app_control_get_uri (app_control_h app_control, char **uri) |
Gets the URI of the data. | |
int | app_control_set_uri_by_handle (app_control_h app_control, app_control_uri_h uri) |
Sets the URI by the app_control_uri handle. | |
int | app_control_set_mime (app_control_h app_control, const char *mime) |
Sets the explicit MIME type of the data. | |
int | app_control_get_mime (app_control_h app_control, char **mime) |
Gets the explicit MIME type of the data. | |
int | app_control_set_category (app_control_h app_control, const char *category) |
Sets the explicit category. | |
int | app_control_get_category (app_control_h app_control, char **category) |
Gets the explicit category. | |
int | app_control_set_app_id (app_control_h app_control, const char *app_id) |
Sets the ID of the application to explicitly launch. | |
int | app_control_get_app_id (app_control_h app_control, char **app_id) |
Gets the ID of the application to explicitly launch. | |
int | app_control_add_extra_data (app_control_h app_control, const char *key, const char *value) |
Adds extra data to the app_control. | |
int | app_control_add_extra_data_array (app_control_h app_control, const char *key, const char *value[], int length) |
Adds the extra data array to the app_control. | |
int | app_control_remove_extra_data (app_control_h app_control, const char *key) |
Removes the extra data from the app_control. | |
int | app_control_get_extra_data (app_control_h app_control, const char *key, char **value) |
Gets the extra data from the app_control. | |
int | app_control_get_extra_data_array (app_control_h app_control, const char *key, char ***value, int *length) |
Gets the extra data array from the app_control. | |
int | app_control_is_extra_data_array (app_control_h app_control, const char *key, bool *array) |
Checks whether the extra data associated with the given key is of array data type. | |
int | app_control_foreach_extra_data (app_control_h app_control, app_control_extra_data_cb callback, void *user_data) |
Retrieves all extra data contained in app_control. | |
int | app_control_foreach_app_matched (app_control_h app_control, app_control_app_matched_cb callback, void *user_data) |
Retrieves all applications that can be launched to handle the given app_control request. | |
int | app_control_send_launch_request (app_control_h app_control, app_control_reply_cb callback, void *user_data) |
Sends the launch request. | |
int | app_control_send_terminate_request (app_control_h app_control) |
Sends the terminate request to the application that is launched by app_control. This API is only effective for some applications that are provided by default for handling platform default app_controls. You are not allowed to terminate other general applications using this API. | |
int | app_control_reply_to_launch_request (app_control_h reply, app_control_h request, app_control_result_e result) |
Replies to the launch request sent by the caller. | |
int | app_control_clone (app_control_h *clone, app_control_h app_control) |
Creates and returns a copy of the given app_control handle. | |
int | app_control_get_caller (app_control_h app_control, char **id) |
Gets the application ID of the caller from the launch request. | |
int | app_control_is_reply_requested (app_control_h app_control, bool *requested) |
Checks whether the caller is requesting a reply from the launch request. | |
int | app_control_set_launch_mode (app_control_h app_control, app_control_launch_mode_e mode) |
Sets the launch mode of the application. | |
int | app_control_get_launch_mode (app_control_h app_control, app_control_launch_mode_e *mode) |
Gets the launch mode of the application. | |
int | app_control_enable_app_started_result_event (app_control_h app_control) |
Enables an additional launch result event on the launch request. | |
int | app_control_send_launch_request_async (app_control_h app_control, app_control_result_cb result_cb, app_control_reply_cb reply_cb, void *user_data) |
Sends the launch request asynchronously. | |
int | app_control_send_launch_request_sync (app_control_h app_control, app_control_h *reply, app_control_result_e *result) |
Sends the launch request synchronously. | |
int | app_control_add_action_handler (const char *action, app_control_action_cb callback, void *user_data, app_control_action_h *handle) |
Adds the action handle of the app_control. | |
int | app_control_remove_action_handler (app_control_action_h handle) |
Removes the registered action handle of the app_control. | |
int | app_control_set_component_id (app_control_h app_control, const char *component_id) |
Sets the ID of the component. | |
int | app_control_get_component_id (app_control_h app_control, char **component_id) |
Gets the ID of the component. | |
Typedefs | |
typedef struct app_control_s * | app_control_h |
The application control handle. | |
typedef void(* | app_control_reply_cb )(app_control_h request, app_control_h reply, app_control_result_e result, void *user_data) |
Called when the reply of the launch request is delivered. | |
typedef bool(* | app_control_extra_data_cb )(app_control_h app_control, const char *key, void *user_data) |
Called to retrieve the extra data contained in the app_control. | |
typedef bool(* | app_control_app_matched_cb )(app_control_h app_control, const char *appid, void *user_data) |
Called once for each matched application that can be launched to handle the given app_control request. | |
typedef void(* | app_control_result_cb )(app_control_h request, app_control_error_e result, void *user_data) |
Called when the result of the launch request is delivered. | |
typedef struct app_control_action_s * | app_control_action_h |
The application control action handle. | |
typedef void(* | app_control_action_cb )(const char *action, app_control_h app_control, void *user_data) |
Called when another application sends a launch request to the application. | |
Defines | |
#define | APP_CONTROL_OPERATION_MAIN "http://tizen.org/appcontrol/operation/main" |
Definition for the app_control operation: An explicit launch for the homescreen application. | |
#define | APP_CONTROL_OPERATION_DEFAULT "http://tizen.org/appcontrol/operation/default" |
Definition for the app_control operation: An explicit launch for an application that excludes the homescreen application. | |
#define | APP_CONTROL_OPERATION_EDIT "http://tizen.org/appcontrol/operation/edit" |
Definition for the app_control operation: Provides an editable access to the given data. | |
#define | APP_CONTROL_OPERATION_VIEW "http://tizen.org/appcontrol/operation/view" |
Definition for the app_control operation: Displays the data. | |
#define | APP_CONTROL_OPERATION_PICK "http://tizen.org/appcontrol/operation/pick" |
Definition for the app_control operation: Picks the item. | |
#define | APP_CONTROL_OPERATION_CREATE_CONTENT "http://tizen.org/appcontrol/operation/create_content" |
Definition for the app_control operation: Creates the contents. | |
#define | APP_CONTROL_OPERATION_CALL "http://tizen.org/appcontrol/operation/call" |
Definition for the app_control operation: Performs a call to someone. | |
#define | APP_CONTROL_OPERATION_SEND "http://tizen.org/appcontrol/operation/send" |
Definition for the app_control operation: Delivers some data to someone else. | |
#define | APP_CONTROL_OPERATION_SEND_TEXT "http://tizen.org/appcontrol/operation/send_text" |
Definition for the app_control operation: Delivers text data to someone else. | |
#define | APP_CONTROL_OPERATION_SHARE "http://tizen.org/appcontrol/operation/share" |
Definition for the app_control operation: Shares an item with someone else. | |
#define | APP_CONTROL_OPERATION_MULTI_SHARE "http://tizen.org/appcontrol/operation/multi_share" |
Definition for the app_control operation: Shares multiple items with someone else. | |
#define | APP_CONTROL_OPERATION_SHARE_TEXT "http://tizen.org/appcontrol/operation/share_text" |
Definition for the app_control operation: Shares the text data with someone else. | |
#define | APP_CONTROL_OPERATION_DIAL "http://tizen.org/appcontrol/operation/dial" |
Definition for the app_control operation: Dials a number. This shows a UI with the number to be dialed, allowing the user to explicitly initiate the call. | |
#define | APP_CONTROL_OPERATION_SEARCH "http://tizen.org/appcontrol/operation/search" |
Definition for the app_control operation: Performs a search. | |
#define | APP_CONTROL_OPERATION_DOWNLOAD "http://tizen.org/appcontrol/operation/download" |
Definition for the app_control operation: Downloads the item. | |
#define | APP_CONTROL_OPERATION_PRINT "http://tizen.org/appcontrol/operation/print" |
Definition for the app_control operation: Prints the content. | |
#define | APP_CONTROL_OPERATION_COMPOSE "http://tizen.org/appcontrol/operation/compose" |
Definition for the app_control operation: Composes a message. | |
#define | APP_CONTROL_OPERATION_LAUNCH_ON_EVENT "http://tizen.org/appcontrol/operation/launch_on_event" |
Definition for the app_control operation: Can be launched by an interested system-event. | |
#define | APP_CONTROL_OPERATION_ADD "http://tizen.org/appcontrol/operation/add" |
Definition for the app_control operation: Adds an item. | |
#define | APP_CONTROL_OPERATION_IMAGE_CAPTURE "http://tizen.org/appcontrol/operation/image_capture" |
Definition for the app_control operation: Captures images by camera applications. | |
#define | APP_CONTROL_OPERATION_VIDEO_CAPTURE "http://tizen.org/appcontrol/operation/video_capture" |
Definition for the app_control operation: Captures the videos by camera applications. | |
#define | APP_CONTROL_OPERATION_SETTING_BT_ENABLE "http://tizen.org/appcontrol/operation/setting/bt_enable" |
Definition for the app_control operation: Shows the settings to enable Bluetooth. | |
#define | APP_CONTROL_OPERATION_SETTING_BT_VISIBILITY "http://tizen.org/appcontrol/operation/setting/bt_visibility" |
Definition for the app_control operation: Shows the settings to configure Bluetooth visibility. | |
#define | APP_CONTROL_OPERATION_SETTING_LOCATION "http://tizen.org/appcontrol/operation/setting/location" |
Definition for the app_control operation: Shows the settings to allow configuration of current location sources. | |
#define | APP_CONTROL_OPERATION_SETTING_NFC "http://tizen.org/appcontrol/operation/setting/nfc" |
Definition for the app_control operation: Shows the NFC settings. | |
#define | APP_CONTROL_OPERATION_SETTING "http://tizen.org/appcontrol/operation/setting" |
Definition for the app_control operation: Shows the system settings. | |
#define | APP_CONTROL_OPERATION_SETTING_WIFI "http://tizen.org/appcontrol/operation/setting/wifi" |
Definition for the app_control operation: Shows the settings to allow configuration of Wi-Fi. | |
#define | APP_CONTROL_OPERATION_SETTING_VPN "http://tizen.org/appcontrol/operation/setting/vpn" |
Definition for the application control operation: Shows the VPN service settings. | |
#define | APP_CONTROL_OPERATION_GET_INPUT "http://tizen.org/appcontrol/operation/get_input" |
Definition for the application control operation: Select the type of input method to receive an input from the user. | |
#define | APP_CONTROL_OPERATION_MEDIA_CONTROLLER "http://tizen.org/appcontrol/operation/media_control" |
Definition for the application control operation: launch controller server or client. | |
#define | APP_CONTROL_OPERATION_PRIVACY_SETTING_GUIDE "http://tizen.org/appcontrol/operation/guide_privacy_setting" |
Definition for the application control operation: Shows guide popup to privacy settings. | |
#define | APP_CONTROL_OPERATION_INTENT "http://tizen.org/appcontrol/operation/intent" |
Definition for the application control operation: Sends URI. | |
#define | APP_CONTROL_DATA_FEATURE "http://tizen.org/appcontrol/data/feature" |
Definition for the app_control data: Feature of function name. | |
#define | APP_CONTROL_DATA_PRIVILEGES "http://tizen.org/appcontrol/data/privileges" |
Definition for the app_control data: List of privileges. | |
#define | APP_CONTROL_DATA_SUBJECT "http://tizen.org/appcontrol/data/subject" |
Definition for the app_control data: Subject. | |
#define | APP_CONTROL_DATA_TO "http://tizen.org/appcontrol/data/to" |
Definition for the app_control data: Recipients. | |
#define | APP_CONTROL_DATA_CC "http://tizen.org/appcontrol/data/cc" |
Definition for the app_control data: Email addresses that should be carbon copied. | |
#define | APP_CONTROL_DATA_BCC "http://tizen.org/appcontrol/data/bcc" |
Definition for the app_control data: Email addresses that should be blind carbon copied. | |
#define | APP_CONTROL_DATA_TEXT "http://tizen.org/appcontrol/data/text" |
Definition for the app_control data: Text. | |
#define | APP_CONTROL_DATA_TITLE "http://tizen.org/appcontrol/data/title" |
Definition for the app_control data: Title. | |
#define | APP_CONTROL_DATA_SELECTED "http://tizen.org/appcontrol/data/selected" |
Definition for the app_control data: Selected items. | |
#define | APP_CONTROL_DATA_PATH "http://tizen.org/appcontrol/data/path" |
Definition for the app_control data: Paths of items. | |
#define | APP_CONTROL_DATA_SELECTION_MODE "http://tizen.org/appcontrol/data/selection_mode" |
Definition for the app_control data: Selection mode ("single" or "multiple"). | |
#define | APP_CONTROL_DATA_CALENDAR_ALL_DAY "http://tizen.org/appcontrol/data/calendar/all_day" |
Definition for the app_control data: All-day mode of the event ("true" or "false"). | |
#define | APP_CONTROL_DATA_CALENDAR_START_TIME "http://tizen.org/appcontrol/data/calendar/start_time" |
Definition for the app_control data: Start time of the event (format: YYYY-MM-DD HH:MM:SS). | |
#define | APP_CONTROL_DATA_CALENDAR_END_TIME "http://tizen.org/appcontrol/data/calendar/end_time" |
Definition for the app_control data: End time of event (format: YYYY-MM-DD HH:MM:SS). | |
#define | APP_CONTROL_DATA_EMAIL "http://tizen.org/appcontrol/data/email" |
Definition for the app_control data: Email addresses. | |
#define | APP_CONTROL_DATA_PHONE "http://tizen.org/appcontrol/data/phone" |
Definition for the app_control data: Phone numbers. | |
#define | APP_CONTROL_DATA_URL "http://tizen.org/appcontrol/data/url" |
Definition for the app_control data: URLs. | |
#define | APP_CONTROL_DATA_ID "http://tizen.org/appcontrol/data/id" |
Definition for the app_control data: IDs. | |
#define | APP_CONTROL_DATA_TYPE "http://tizen.org/appcontrol/data/type" |
Definition for the app_control data: Type. | |
#define | APP_CONTROL_DATA_TOTAL_COUNT "http://tizen.org/appcontrol/data/total_count" |
Definition for the app_control data: Total count. | |
#define | APP_CONTROL_DATA_TOTAL_SIZE "http://tizen.org/appcontrol/data/total_size" |
Definition for the app_control data: Total size (unit : bytes). | |
#define | APP_CONTROL_DATA_NAME "http://tizen.org/appcontrol/data/name" |
Definition for the app_control data: Name. | |
#define | APP_CONTROL_DATA_LOCATION "http://tizen.org/appcontrol/data/location" |
Definition for the app_control data: Location. | |
#define | APP_CONTROL_DATA_INPUT_TYPE "http://tizen.org/appcontrol/data/input_type" |
Definition for the app_control data: Selects the type of the input method. | |
#define | APP_CONTROL_DATA_INPUT_DEFAULT_TEXT "http://tizen.org/appcontrol/data/input_default_text" |
Definition for the app_control data: Sends the pre-input text such as "http://" in web. | |
#define | APP_CONTROL_DATA_INPUT_GUIDE_TEXT "http://tizen.org/appcontrol/data/input_guide_text" |
Definition for the app_control data: Sends the guide text to show the user such as "Input user name". | |
#define | APP_CONTROL_DATA_INPUT_PREDICTION_HINT "http://tizen.org/appcontrol/data/input_prediction_hint" |
Definition for the app_control data: Sends text to receive the result from smart reply. | |
#define | APP_CONTROL_DATA_INPUT_RETURNKEY_TYPE "http://tizen.org/appcontrol/data/input_returnkey_type" |
Definition for the app_control data: Sends type to set the return key type in the keyboard input type. | |
#define | APP_CONTROL_DATA_INPUT_MAX_TEXT_LENGTH "http://tizen.org/appcontrol/data/input_max_text_length" |
Definition for the app_control data: Sends the length value to set the max text length in the keyboard input type. | |
#define | APP_CONTROL_DATA_INPUT_CURSOR_POSITION_SET "http://tizen.org/appcontrol/data/input_cursor_position_set" |
Definition for app_control data: Send value to set cursor position to entry in keyboard input type. | |
#define | APP_CONTROL_DATA_INPUT_CURSOR_POSITION_GET "http://tizen.org/appcontrol/data/input_cursor_position_get" |
Definition for app_control data: Receive value to get cursor position from entry in keyboard input type. | |
#define | APP_CONTROL_DATA_INPUT_REPLY_TYPE "http://tizen.org/appcontrol/data/input_reply_type" |
Definition for the app_control data: Receives the reply type from the input method. | |
#define | APP_CONTROL_DATA_WIDGET_INSTANCE_ID "http://tizen.org/appcontrol/data/widget_instance_id" |
Definition for the app_control data: Sends the widget instance ID to the widget setup application. | |
#define | APP_CONTROL_DATA_WIDGET_CONTENT "http://tizen.org/appcontrol/data/widget_content" |
Definition for the app_control data: Sends the widget content to the widget setup application. | |
#define | APP_CONTROL_DATA_WIDGET_APP_ID "http://tizen.org/appcontrol/data/widget_app_id" |
Definition for the app_control data: Sends the widget application ID to the widget setup application. | |
#define | APP_CONTROL_DATA_URI_FRAGMENT "http://tizen.org/appcontrol/data/uri/fragment" |
Definition for the fragment data of a URI. | |
#define | APP_CONTROL_DATA_URI_PATH "http://tizen.org/appcontrol/data/uri/path" |
Definition for the path data of a URI. |
#define APP_CONTROL_DATA_BCC "http://tizen.org/appcontrol/data/bcc" |
Definition for the app_control data: Email addresses that should be blind carbon copied.
#define APP_CONTROL_DATA_CALENDAR_ALL_DAY "http://tizen.org/appcontrol/data/calendar/all_day" |
Definition for the app_control data: All-day mode of the event ("true" or "false").
#define APP_CONTROL_DATA_CALENDAR_END_TIME "http://tizen.org/appcontrol/data/calendar/end_time" |
Definition for the app_control data: End time of event (format: YYYY-MM-DD HH:MM:SS).
#define APP_CONTROL_DATA_CALENDAR_START_TIME "http://tizen.org/appcontrol/data/calendar/start_time" |
Definition for the app_control data: Start time of the event (format: YYYY-MM-DD HH:MM:SS).
#define APP_CONTROL_DATA_CC "http://tizen.org/appcontrol/data/cc" |
Definition for the app_control data: Email addresses that should be carbon copied.
#define APP_CONTROL_DATA_EMAIL "http://tizen.org/appcontrol/data/email" |
Definition for the app_control data: Email addresses.
#define APP_CONTROL_DATA_FEATURE "http://tizen.org/appcontrol/data/feature" |
Definition for the app_control data: Feature of function name.
#define APP_CONTROL_DATA_ID "http://tizen.org/appcontrol/data/id" |
Definition for the app_control data: IDs.
#define APP_CONTROL_DATA_INPUT_CURSOR_POSITION_GET "http://tizen.org/appcontrol/data/input_cursor_position_get" |
Definition for app_control data: Receive value to get cursor position from entry in keyboard input type.
#define APP_CONTROL_DATA_INPUT_CURSOR_POSITION_SET "http://tizen.org/appcontrol/data/input_cursor_position_set" |
Definition for app_control data: Send value to set cursor position to entry in keyboard input type.
#define APP_CONTROL_DATA_INPUT_DEFAULT_TEXT "http://tizen.org/appcontrol/data/input_default_text" |
Definition for the app_control data: Sends the pre-input text such as "http://" in web.
#define APP_CONTROL_DATA_INPUT_GUIDE_TEXT "http://tizen.org/appcontrol/data/input_guide_text" |
Definition for the app_control data: Sends the guide text to show the user such as "Input user name".
#define APP_CONTROL_DATA_INPUT_MAX_TEXT_LENGTH "http://tizen.org/appcontrol/data/input_max_text_length" |
Definition for the app_control data: Sends the length value to set the max text length in the keyboard input type.
#define APP_CONTROL_DATA_INPUT_PREDICTION_HINT "http://tizen.org/appcontrol/data/input_prediction_hint" |
Definition for the app_control data: Sends text to receive the result from smart reply.
#define APP_CONTROL_DATA_INPUT_REPLY_TYPE "http://tizen.org/appcontrol/data/input_reply_type" |
Definition for the app_control data: Receives the reply type from the input method.
Type: "input_voice" Receive the result from the voice input type. "input_emoticon" Receive the result from the emoticon input type. "input_keyboard" Receive the result from the keyboard input type. "input_reply" Receive the result from the reply input type. "input_image" Receive the result from the image input type. "input_audio" Receive the result from the audio input type.
#define APP_CONTROL_DATA_INPUT_RETURNKEY_TYPE "http://tizen.org/appcontrol/data/input_returnkey_type" |
Definition for the app_control data: Sends type to set the return key type in the keyboard input type.
Type: "Done" Set the type with Done label. "Send" Set the type with Send label. "Join" Set the type with Join label. "Login" Set the type with Login label. "Next" Set the type with Next label. "Sign-in" Set the type with Sign-in label. "Search" Set the type with Search label. "Go" Set the type with Go label.
#define APP_CONTROL_DATA_INPUT_TYPE "http://tizen.org/appcontrol/data/input_type" |
Definition for the app_control data: Selects the type of the input method.
Type: "input_voice" Launch the input method with the voice type. "input_emoticon" Launch the input method with the emoticon type. "input_keyboard" Launch the input method with the keyboard type. "input_reply" Launch the input method with the context based reply type. "input_drawing" Launch the input method with the drawing type. "input_recording" Launch the input method with the voice recording type. input_reply, input_drawing and input_recording types are valid since tizen 4.0.
#define APP_CONTROL_DATA_LOCATION "http://tizen.org/appcontrol/data/location" |
Definition for the app_control data: Location.
#define APP_CONTROL_DATA_NAME "http://tizen.org/appcontrol/data/name" |
Definition for the app_control data: Name.
#define APP_CONTROL_DATA_PATH "http://tizen.org/appcontrol/data/path" |
Definition for the app_control data: Paths of items.
#define APP_CONTROL_DATA_PHONE "http://tizen.org/appcontrol/data/phone" |
Definition for the app_control data: Phone numbers.
#define APP_CONTROL_DATA_PRIVILEGES "http://tizen.org/appcontrol/data/privileges" |
Definition for the app_control data: List of privileges.
#define APP_CONTROL_DATA_SELECTED "http://tizen.org/appcontrol/data/selected" |
Definition for the app_control data: Selected items.
#define APP_CONTROL_DATA_SELECTION_MODE "http://tizen.org/appcontrol/data/selection_mode" |
Definition for the app_control data: Selection mode ("single" or "multiple").
#define APP_CONTROL_DATA_SUBJECT "http://tizen.org/appcontrol/data/subject" |
Definition for the app_control data: Subject.
#define APP_CONTROL_DATA_TEXT "http://tizen.org/appcontrol/data/text" |
Definition for the app_control data: Text.
#define APP_CONTROL_DATA_TITLE "http://tizen.org/appcontrol/data/title" |
Definition for the app_control data: Title.
#define APP_CONTROL_DATA_TO "http://tizen.org/appcontrol/data/to" |
Definition for the app_control data: Recipients.
#define APP_CONTROL_DATA_TOTAL_COUNT "http://tizen.org/appcontrol/data/total_count" |
Definition for the app_control data: Total count.
#define APP_CONTROL_DATA_TOTAL_SIZE "http://tizen.org/appcontrol/data/total_size" |
Definition for the app_control data: Total size (unit : bytes).
#define APP_CONTROL_DATA_TYPE "http://tizen.org/appcontrol/data/type" |
Definition for the app_control data: Type.
#define APP_CONTROL_DATA_URI_FRAGMENT "http://tizen.org/appcontrol/data/uri/fragment" |
Definition for the fragment data of a URI.
#define APP_CONTROL_DATA_URI_PATH "http://tizen.org/appcontrol/data/uri/path" |
Definition for the path data of a URI.
#define APP_CONTROL_DATA_URL "http://tizen.org/appcontrol/data/url" |
Definition for the app_control data: URLs.
#define APP_CONTROL_DATA_WIDGET_APP_ID "http://tizen.org/appcontrol/data/widget_app_id" |
Definition for the app_control data: Sends the widget application ID to the widget setup application.
The value is the application ID declared in the widget application manifest file.
#define APP_CONTROL_DATA_WIDGET_CONTENT "http://tizen.org/appcontrol/data/widget_content" |
Definition for the app_control data: Sends the widget content to the widget setup application.
The value is the content information of the widget instance.
#define APP_CONTROL_DATA_WIDGET_INSTANCE_ID "http://tizen.org/appcontrol/data/widget_instance_id" |
Definition for the app_control data: Sends the widget instance ID to the widget setup application.
The value is the ID of the widget instance.
#define APP_CONTROL_OPERATION_ADD "http://tizen.org/appcontrol/operation/add" |
Definition for the app_control operation: Adds an item.
Input: It depends on the application scenario or configuration.
Output: It depends on the application scenario or configuration.
#define APP_CONTROL_OPERATION_CALL "http://tizen.org/appcontrol/operation/call" |
Definition for the app_control operation: Performs a call to someone.
Input: URI is the number to be dialed. This is a mandatory field.
Output: Nothing
#define APP_CONTROL_OPERATION_COMPOSE "http://tizen.org/appcontrol/operation/compose" |
Definition for the app_control operation: Composes a message.
Input: It depends on the application scenario or configuration.
Output: Nothing
#define APP_CONTROL_OPERATION_CREATE_CONTENT "http://tizen.org/appcontrol/operation/create_content" |
Definition for the app_control operation: Creates the contents.
Input: It depends on application scenario or configuration.
Output: APP_CONTROL_DATA_SELECTED in extra.
#define APP_CONTROL_OPERATION_DEFAULT "http://tizen.org/appcontrol/operation/default" |
Definition for the app_control operation: An explicit launch for an application that excludes the homescreen application.
Input: Nothing
Output: Nothing
#define APP_CONTROL_OPERATION_DIAL "http://tizen.org/appcontrol/operation/dial" |
Definition for the app_control operation: Dials a number. This shows a UI with the number to be dialed, allowing the user to explicitly initiate the call.
Input: URI is the number to be dialed. If empty, show a UI without the number.
Output: Nothing
#define APP_CONTROL_OPERATION_DOWNLOAD "http://tizen.org/appcontrol/operation/download" |
Definition for the app_control operation: Downloads the item.
Input: It depends on the application scenario or configuration.
Output: It depends on the application scenario or configuration.
#define APP_CONTROL_OPERATION_EDIT "http://tizen.org/appcontrol/operation/edit" |
Definition for the app_control operation: Provides an editable access to the given data.
Input: It depends on the application scenario or configuration.
Output: It depends on the application scenario or configuration.
#define APP_CONTROL_OPERATION_GET_INPUT "http://tizen.org/appcontrol/operation/get_input" |
Definition for the application control operation: Select the type of input method to receive an input from the user.
Input: It depends on the application scenario or configuration.
Output: APP_CONTROL_DATA_TEXT in extra.
#define APP_CONTROL_OPERATION_IMAGE_CAPTURE "http://tizen.org/appcontrol/operation/image_capture" |
Definition for the app_control operation: Captures images by camera applications.
Input: Nothing
Output: APP_CONTROL_DATA_SELECTED in extra.
#define APP_CONTROL_OPERATION_INTENT "http://tizen.org/appcontrol/operation/intent" |
Definition for the application control operation: Sends URI.
Input: URI, this is a mandatory field.
Input: APP_CONTROL_DATA_URI_FRAGMENT in extra is the fragment of the URI.
Input: APP_CONTROL_DATA_URI_PATH in extra is the path of the URI.
Output: Nothing
#define APP_CONTROL_OPERATION_LAUNCH_ON_EVENT "http://tizen.org/appcontrol/operation/launch_on_event" |
Definition for the app_control operation: Can be launched by an interested system-event.
Input : URI and extras data defined in event module.
Output: Nothing
#define APP_CONTROL_OPERATION_MAIN "http://tizen.org/appcontrol/operation/main" |
Definition for the app_control operation: An explicit launch for the homescreen application.
Input: Nothing
Output: Nothing
#define APP_CONTROL_OPERATION_MEDIA_CONTROLLER "http://tizen.org/appcontrol/operation/media_control" |
Definition for the application control operation: launch controller server or client.
Input: APP_CONTROL_DATA_TYPE in extra is the text of launch type("server" or "client"). This is a mandatory field.
In some cases, URI is used to inform the path to play for the media controller server.
Output: Nothing
#define APP_CONTROL_OPERATION_MULTI_SHARE "http://tizen.org/appcontrol/operation/multi_share" |
Definition for the app_control operation: Shares multiple items with someone else.
Input: APP_CONTROL_DATA_PATH in extra is usually used to inform the data to share. In some cases, some other data in extra can be used (for example, the MULTI_SHARE operation for sharing the contact data).
Output: Nothing
#define APP_CONTROL_OPERATION_PICK "http://tizen.org/appcontrol/operation/pick" |
Definition for the app_control operation: Picks the item.
Input: It depends on the application scenario or configuration.
Output: APP_CONTROL_DATA_SELECTED in extra.
#define APP_CONTROL_OPERATION_PRINT "http://tizen.org/appcontrol/operation/print" |
Definition for the app_control operation: Prints the content.
Input: It depends on the application scenario or configuration.
Output: It depends on the application scenario or configuration.
#define APP_CONTROL_OPERATION_PRIVACY_SETTING_GUIDE "http://tizen.org/appcontrol/operation/guide_privacy_setting" |
Definition for the application control operation: Shows guide popup to privacy settings.
Input: APP_CONTROL_DATA_TYPE in extra is the text of guide type("open" or "use"). This is a mandatory field.
Input: APP_CONTROL_DATA_FEATURE in extra is the text of the feature or function name which requires privacy privileges.
Input: APP_CONTROL_DATA_PRIVILEGES in extra is the text array of the required privileges. This is a mandatory field.
Output: APP_CONTROL_DATA_SELECTED in extra. The value is "yes" or "no" according to the user response.
#define APP_CONTROL_OPERATION_SEARCH "http://tizen.org/appcontrol/operation/search" |
Definition for the app_control operation: Performs a search.
Input: APP_CONTROL_DATA_TEXT in extra is the text to search for. If empty, show a search UI.
Output: Nothing
#define APP_CONTROL_OPERATION_SEND "http://tizen.org/appcontrol/operation/send" |
Definition for the app_control operation: Delivers some data to someone else.
#define APP_CONTROL_OPERATION_SEND_TEXT "http://tizen.org/appcontrol/operation/send_text" |
Definition for the app_control operation: Delivers text data to someone else.
#define APP_CONTROL_OPERATION_SETTING "http://tizen.org/appcontrol/operation/setting" |
Definition for the app_control operation: Shows the system settings.
Input: Nothing
Output: Nothing
#define APP_CONTROL_OPERATION_SETTING_BT_ENABLE "http://tizen.org/appcontrol/operation/setting/bt_enable" |
Definition for the app_control operation: Shows the settings to enable Bluetooth.
Input: Nothing
Output: Nothing
#define APP_CONTROL_OPERATION_SETTING_BT_VISIBILITY "http://tizen.org/appcontrol/operation/setting/bt_visibility" |
Definition for the app_control operation: Shows the settings to configure Bluetooth visibility.
Input: Nothing
Output: Nothing
#define APP_CONTROL_OPERATION_SETTING_LOCATION "http://tizen.org/appcontrol/operation/setting/location" |
Definition for the app_control operation: Shows the settings to allow configuration of current location sources.
Input: Nothing
Output: Nothing
#define APP_CONTROL_OPERATION_SETTING_NFC "http://tizen.org/appcontrol/operation/setting/nfc" |
Definition for the app_control operation: Shows the NFC settings.
Input: APP_CONTROL_DATA_TYPE in extra (Since 3.0).
Output: Nothing
#define APP_CONTROL_OPERATION_SETTING_VPN "http://tizen.org/appcontrol/operation/setting/vpn" |
Definition for the application control operation: Shows the VPN service settings.
Input: Nothing
Output: Nothing
#define APP_CONTROL_OPERATION_SETTING_WIFI "http://tizen.org/appcontrol/operation/setting/wifi" |
Definition for the app_control operation: Shows the settings to allow configuration of Wi-Fi.
Input: Nothing
Output: Nothing
#define APP_CONTROL_OPERATION_SHARE "http://tizen.org/appcontrol/operation/share" |
Definition for the app_control operation: Shares an item with someone else.
Input: URI is usually used to inform the path to share. In some cases, some other data in extra can be used (for example, the SHARE operation for sharing the contact data, the SHARE operation for sharing an item through a message and email applications).
Output: Nothing
#define APP_CONTROL_OPERATION_SHARE_TEXT "http://tizen.org/appcontrol/operation/share_text" |
Definition for the app_control operation: Shares the text data with someone else.
Input: APP_CONTROL_DATA_TEXT in extra is the text to share
Output: Nothing
#define APP_CONTROL_OPERATION_VIDEO_CAPTURE "http://tizen.org/appcontrol/operation/video_capture" |
Definition for the app_control operation: Captures the videos by camera applications.
Input: Nothing
Output: APP_CONTROL_DATA_SELECTED in extra.
#define APP_CONTROL_OPERATION_VIEW "http://tizen.org/appcontrol/operation/view" |
Definition for the app_control operation: Displays the data.
Input: URI is usually used to inform the path to show. In some cases, some other data in extra can be used (for example, the VIEW operation for viewing the contact and calendar data).
Output: Nothing
typedef void(* app_control_action_cb)(const char *action, app_control_h app_control, void *user_data) |
Called when another application sends a launch request to the application.
Before calling app_control_cb() function, this callback function is called.
[in] | action | The name of the app_control action |
[in] | app_control | The handle of the app_control |
[in] | user_data | The user data passed from the callback registration function |
typedef struct app_control_action_s* app_control_action_h |
The application control action handle.
typedef bool(* app_control_app_matched_cb)(app_control_h app_control, const char *appid, void *user_data) |
Called once for each matched application that can be launched to handle the given app_control request.
[in] | app_control | The app_control handle |
[in] | appid | The name of the application that can handle the launch request of the given app_control |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, otherwise false
to break out of the loop typedef bool(* app_control_extra_data_cb)(app_control_h app_control, const char *key, void *user_data) |
Called to retrieve the extra data contained in the app_control.
[in] | app_control | The app_control handle |
[in] | key | The key of the value contained in the app_control |
[in] | user_data | The user data passed from the foreach function |
true
to continue with the next iteration of the loop, otherwise false
to break out of the loop typedef struct app_control_s* app_control_h |
The application control handle.
typedef void(* app_control_reply_cb)(app_control_h request, app_control_h reply, app_control_result_e result, void *user_data) |
Called when the reply of the launch request is delivered.
[in] | request | The app_control handle of the launch request that has been sent |
[in] | reply | The app_control handle in which the results of the callee are contained |
[in] | result | The result code of the launch request |
[in] | user_data | The user data passed from the callback registration function |
typedef void(* app_control_result_cb)(app_control_h request, app_control_error_e result, void *user_data) |
Called when the result of the launch request is delivered.
Following error codes can be delivered:
APP_CONTROL_ERROR_NONE,
APP_CONTROL_ERROR_APP_NOT_FOUND,
APP_CONTROL_ERROR_PERMISSION_DENIED,
APP_CONTROL_ERROR_INVALID_PARAMETER,
APP_CONTROL_ERROR_LAUNCH_REJECTED
[in] | request | The app_control handle of the launch request that has been sent |
[in] | result | The result value of the launch request |
[in] | user_data | The user data passed from the callback registration function |
enum app_control_error_e |
Enumeration for the application control error.
enum app_control_result_e |
Enumeration for the application control result.
int app_control_add_action_handler | ( | const char * | action, |
app_control_action_cb | callback, | ||
void * | user_data, | ||
app_control_action_h * | handle | ||
) |
Adds the action handle of the app_control.
[in] | action | The action name of the app_control |
[in] | callback | The callback function |
[in] | user_data | The user data to be passed to the callback function |
[out] | handle | The app_control action handle |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
APP_CONTROL_ERROR_KEY_NOT_FOUND | Specified app_control ID not found |
APP_CONTROL_ERROR_IO_ERROR | IO error |
int app_control_add_extra_data | ( | app_control_h | app_control, |
const char * | key, | ||
const char * | value | ||
) |
Adds extra data to the app_control.
[in] | app_control | The app_control handle |
[in] | key | The name of the extra data |
[in] | value | The value associated with the given key |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_KEY_REJECTED | Key not available |
int app_control_add_extra_data_array | ( | app_control_h | app_control, |
const char * | key, | ||
const char * | value[], | ||
int | length | ||
) |
Adds the extra data array to the app_control.
[in] | app_control | The app_control handle |
[in] | key | The name of the extra data |
[in] | value | The array value associated with the given key |
[in] | length | The length of the array |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_KEY_REJECTED | Key not available |
int app_control_clone | ( | app_control_h * | clone, |
app_control_h | app_control | ||
) |
Creates and returns a copy of the given app_control handle.
[out] | clone | If successful, a newly created app_control handle will be returned |
[in] | app_control | The app_control handle |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
int app_control_create | ( | app_control_h * | app_control | ) |
Creates an app_control handle.
[out] | app_control | The app_control handle to be newly created on success |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
int app_control_create_from_uri_handle | ( | app_control_h * | app_control, |
app_control_uri_h | uri | ||
) |
Creates an app_control handle from an app_control_uri handle.
[out] | app_control | The app_control handle to be newly created on success |
[in] | uri | The URI handle |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
int app_control_create_with_parameters | ( | app_control_h * | app_control, |
const char * | operation, | ||
const char * | uri, | ||
const char * | mime, | ||
const char * | category, | ||
const char * | app_id, | ||
app_control_launch_mode_e | mode, | ||
int | extra_data_count, | ||
... | |||
) |
Creates an app_control handle and sets its attributes.
Extra data of array type cannot be added with this function. If you need to add arrays to the app_control handle, create the handle with app_control_create_with_parameters() and then add arrays with app_control_add_extra_data_array(). For details on key-value pairs that app_control_create_with_parameters() allows, their types and constraints, see app_control_add_extra_data().
[out] | app_control | The app_control handle to be newly created on success |
[in] | operation | The operation to be performed |
[in] | uri | The URI of the data this app_control is operating on |
[in] | mime | The explicit MIME type of the data this app_control is operating on |
[in] | category | The explicit category |
[in] | app_id | The ID of the application to explicitly launch |
[in] | mode | The launch mode of the application |
[in] | extra_data_count | The count of a extra data |
[in] | ... | The key-value pair list of app control extra data |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
APP_CONTROL_ERROR_KEY_REJECTED | Key not available |
static int create_app_control() { app_control_h control; int ret = app_control_create_with_parameters(&control, NULL, NULL, NULL, NULL, "org.tizen.test", APP_CONTROL_LAUNCH_MODE_SINGLE, 2, "key1", "value1", "key2", "value2"); return ret; }
int app_control_destroy | ( | app_control_h | app_control | ) |
Destroys the app_control handle and releases all its resources.
[in] | app_control | The app_control handle |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
int app_control_enable_app_started_result_event | ( | app_control_h | app_control | ) |
Enables an additional launch result event on the launch request.
The function allows to receive the APP_CONTROL_RESULT_APP_STARTED event on
application get launched by the app_control.
[in] | app_control | The app_control handle |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
int app_control_foreach_app_matched | ( | app_control_h | app_control, |
app_control_app_matched_cb | callback, | ||
void * | user_data | ||
) |
Retrieves all applications that can be launched to handle the given app_control request.
[in] | app_control | The app_control handle |
[in] | callback | The iteration callback function |
[in] | user_data | The user data to be passed to the callback function |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Success |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
int app_control_foreach_extra_data | ( | app_control_h | app_control, |
app_control_extra_data_cb | callback, | ||
void * | user_data | ||
) |
Retrieves all extra data contained in app_control.
This function calls app_control_extra_data_cb() once for each key-value pair for extra data contained in app_control.
If the app_control_extra_data_cb() callback function returns false
, then iteration will be finished.
[in] | app_control | The app_control handle |
[in] | callback | The iteration callback function |
[in] | user_data | The user data to be passed to the callback function |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
int app_control_get_app_id | ( | app_control_h | app_control, |
char ** | app_id | ||
) |
Gets the ID of the application to explicitly launch.
[in] | app_control | The app_control handle |
[out] | app_id | The ID of the application to explicitly launch |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
int app_control_get_caller | ( | app_control_h | app_control, |
char ** | id | ||
) |
Gets the application ID of the caller from the launch request.
[in] | app_control | The app_control handle from app_control_cb() |
[out] | id | The application ID of the caller |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
int app_control_get_category | ( | app_control_h | app_control, |
char ** | category | ||
) |
Gets the explicit category.
[in] | app_control | The app_control handle |
[out] | category | The explicit category |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
int app_control_get_component_id | ( | app_control_h | app_control, |
char ** | component_id | ||
) |
Gets the ID of the component.
[in] | app_control | The app_control handle |
[out] | component_id | The ID of the component which will receive the app_control |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
int app_control_get_extra_data | ( | app_control_h | app_control, |
const char * | key, | ||
char ** | value | ||
) |
Gets the extra data from the app_control.
[in] | app_control | The app_control handle |
[in] | key | The name of the extra data |
[out] | value | The value associated with the given key |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_KEY_NOT_FOUND | Specified key not found |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
APP_CONTROL_ERROR_INVALID_DATA_TYPE | Invalid data type |
APP_CONTROL_ERROR_KEY_REJECTED | Key not available |
int app_control_get_extra_data_array | ( | app_control_h | app_control, |
const char * | key, | ||
char *** | value, | ||
int * | length | ||
) |
Gets the extra data array from the app_control.
[in] | app_control | The app_control handle |
[in] | key | The name of the extra data |
[out] | value | The array value associated with the given key |
[out] | length | The length of the array |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_KEY_NOT_FOUND | Specified key not found |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
APP_CONTROL_ERROR_INVALID_DATA_TYPE | Invalid data type |
APP_CONTROL_ERROR_KEY_REJECTED | Key not available |
int app_control_get_launch_mode | ( | app_control_h | app_control, |
app_control_launch_mode_e * | mode | ||
) |
Gets the launch mode of the application.
[in] | app_control | The app_control handle |
[out] | mode | The launch mode of the application |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
int app_control_get_mime | ( | app_control_h | app_control, |
char ** | mime | ||
) |
Gets the explicit MIME type of the data.
[in] | app_control | The app_control handle |
[out] | mime | The explicit MIME type of the data this app_control is operating on |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
int app_control_get_operation | ( | app_control_h | app_control, |
char ** | operation | ||
) |
Gets the operation to be performed.
[in] | app_control | The app_control handle |
[out] | operation | The operation to be performed |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
int app_control_get_uri | ( | app_control_h | app_control, |
char ** | uri | ||
) |
Gets the URI of the data.
[in] | app_control | The app_control handle |
[out] | uri | The URI of the data this app_control is operating on |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
int app_control_is_extra_data_array | ( | app_control_h | app_control, |
const char * | key, | ||
bool * | array | ||
) |
Checks whether the extra data associated with the given key is of array data type.
[in] | app_control | The app_control handle |
[in] | key | The name of the extra data |
[out] | array | If true the extra data is of array data type, otherwise false |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
int app_control_is_reply_requested | ( | app_control_h | app_control, |
bool * | requested | ||
) |
Checks whether the caller is requesting a reply from the launch request.
[in] | app_control | The app_control handle from app_control_cb() |
[out] | requested | If true a reply is requested by the caller, otherwise false |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
int app_control_remove_action_handler | ( | app_control_action_h | handle | ) |
Removes the registered action handle of the app_control.
[in] | handle | The app_control action handle |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
int app_control_remove_extra_data | ( | app_control_h | app_control, |
const char * | key | ||
) |
Removes the extra data from the app_control.
[in] | app_control | The app_control handle |
[in] | key | The name of the extra data |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_KEY_NOT_FOUND | Specified key not found |
APP_CONTROL_ERROR_KEY_REJECTED | Key not available |
int app_control_reply_to_launch_request | ( | app_control_h | reply, |
app_control_h | request, | ||
app_control_result_e | result | ||
) |
Replies to the launch request sent by the caller.
If the caller application sent the launch request to receive the result, the callee application can return the result back to the caller.
[in] | reply | The app_control handle in which the results of the callee are contained |
[in] | request | The app_control handle sent by the caller |
[in] | result | The result code of the launch request |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
int app_control_send_launch_request | ( | app_control_h | app_control, |
app_control_reply_cb | callback, | ||
void * | user_data | ||
) |
Sends the launch request.
The operation is mandatory information for the launch request.
If the operation is not specified, APP_CONTROL_OPERATION_DEFAULT is used by default. If the operation is APP_CONTROL_OPERATION_DEFAULT, the application ID is mandatory to explicitly launch the application.
[in] | app_control | The app_control handle |
[in] | callback | The callback function to be called when the reply is delivered |
[in] | user_data | The user data to be passed to the callback function |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
APP_CONTROL_ERROR_APP_NOT_FOUND | The application to run the given launch request is not found |
APP_CONTROL_ERROR_LAUNCH_REJECTED | The application cannot be launched in current context |
APP_CONTROL_ERROR_LAUNCH_FAILED | Failed to launch the application |
APP_CONTROL_ERROR_TIMED_OUT | Failed due to timeout. The application that handles app_control may be busy |
APP_CONTROL_ERROR_PERMISSION_DENIED | Permission denied |
int app_control_send_launch_request_async | ( | app_control_h | app_control, |
app_control_result_cb | result_cb, | ||
app_control_reply_cb | reply_cb, | ||
void * | user_data | ||
) |
Sends the launch request asynchronously.
The operation is mandatory information for the launch request.
If the operation is not specified, APP_CONTROL_OPERATION_DEFAULT is used by default. If the operation is APP_CONTROL_OPERATION_DEFAULT, the application ID is mandatory to explicitly launch the application.
After the callee application is initialized or the launch request is delivered to the running application successfully, the result callback function will be invoked.
[in] | app_control | The app_control handle |
[in] | result_cb | The callback function to be called when the result is delivered |
[in] | reply_cb | The callback function to be called when the reply is delivered |
[in] | user_data | The user data to be passed to the callback function |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
APP_CONTROL_ERROR_APP_NOT_FOUND | The application to run the given launch request is not found |
APP_CONTROL_ERROR_LAUNCH_REJECTED | The application cannot be launched in current context |
APP_CONTROL_ERROR_LAUNCH_FAILED | Failed to launch the application |
APP_CONTROL_ERROR_TIMED_OUT | Failed due to timeout. The application that handles app_control may be busy |
APP_CONTROL_ERROR_PERMISSION_DENIED | Permission denied |
int app_control_send_launch_request_sync | ( | app_control_h | app_control, |
app_control_h * | reply, | ||
app_control_result_e * | result | ||
) |
Sends the launch request synchronously.
The operation is mandatory information for the launch request.
If the operation is not specified, APP_CONTROL_OPERATION_DEFAULT is used by default. If the operation is APP_CONTROL_OPERATION_DEFAULT, the application ID is mandatory to explicitly launch the application.
[in] | app_control | The app_control handle |
[out] | reply | The app_control handle in which the results of the callee are contained |
[out] | result | The result code of the launch request |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
APP_CONTROL_ERROR_APP_NOT_FOUND | The application to run the given launch request is not found |
APP_CONTROL_ERROR_LAUNCH_REJECTED | The application cannot be launched in current context |
APP_CONTROL_ERROR_LAUNCH_FAILED | Failed to launch the application |
APP_CONTROL_ERROR_TIMED_OUT | Failed due to timeout. The application that handles app_control may be busy |
APP_CONTROL_ERROR_PERMISSION_DENIED | Permission denied |
int app_control_send_terminate_request | ( | app_control_h | app_control | ) |
Sends the terminate request to the application that is launched by app_control. This API is only effective for some applications that are provided by default for handling platform default app_controls. You are not allowed to terminate other general applications using this API.
[in] | app_control | The app_control handle |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_PERMISSION_DENIED | Permission denied |
int app_control_set_app_id | ( | app_control_h | app_control, |
const char * | app_id | ||
) |
Sets the ID of the application to explicitly launch.
[in] | app_control | The app_control handle |
[in] | app_id | The ID of the application to explicitly launch (if the app_id is NULL , it clears the previous value) |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
int app_control_set_category | ( | app_control_h | app_control, |
const char * | category | ||
) |
Sets the explicit category.
[in] | app_control | The app_control handle |
[in] | category | The explicit category (if the category is NULL , it clears the previous value) |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
int app_control_set_component_id | ( | app_control_h | app_control, |
const char * | component_id | ||
) |
Sets the ID of the component.
[in] | app_control | The app_control handle |
[in] | component_id | The ID of the component which will receive the app_control |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
APP_CONTROL_ERROR_OUT_OF_MEMORY | Out of memory |
int app_control_set_launch_mode | ( | app_control_h | app_control, |
app_control_launch_mode_e | mode | ||
) |
Sets the launch mode of the application.
This function allows the callee application to be launched as a group or as a single mode.
[in] | app_control | The app_control handle |
[in] | mode | The launch mode of the application |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
int app_control_set_mime | ( | app_control_h | app_control, |
const char * | mime | ||
) |
Sets the explicit MIME type of the data.
[in] | app_control | The app_control handle |
[in] | mime | The explicit MIME type of the data this app_control is operating on (if the mime is NULL , it clears the previous value) |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
int app_control_set_operation | ( | app_control_h | app_control, |
const char * | operation | ||
) |
Sets the operation to be performed.
The operation is the mandatory information for the launch request. If the operation is not specified, APP_CONTROL_OPERATION_DEFAULT is used for the launch request. If the operation is APP_CONTROL_OPERATION_DEFAULT, the package information is mandatory to explicitly launch the application.
[in] | app_control | The app_control handle |
[in] | operation | The operation to be performed (if the operation is NULL , it clears the previous value) |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
int app_control_set_uri | ( | app_control_h | app_control, |
const char * | uri | ||
) |
Sets the URI of the data.
[in] | app_control | The app_control handle |
[in] | uri | The URI of the data this app_control is operating on (if the uri is NULL , it clears the previous value) |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |
int app_control_set_uri_by_handle | ( | app_control_h | app_control, |
app_control_uri_h | uri | ||
) |
Sets the URI by the app_control_uri handle.
[in] | app_control | The app_control handle |
[in] | uri | The URI handle |
0
on success, otherwise a negative error value APP_CONTROL_ERROR_NONE | Successful |
APP_CONTROL_ERROR_INVALID_PARAMETER | Invalid parameter |