Tizen Native API
7.0
|
The Autofill manager API provides the functions for getting the current autofill service or changing autofill service.
Required Header
#include <autofill_manager.h>
Overview
Autofill is a feature that allows you to fill out the data previously entered by the user such as email, account and address in a text input field. email, account and address in a text input field. Autofill manager is a module for managing the installed autofill services. Application developers can use this module to get the current autofill service and changing the autofill service. Autofill manager functions are responsible for sending data for supporting autofill to the autofill service and receiving the data previously entered by the user from the autofill service.
Functions | |
int | autofill_manager_create (autofill_manager_h *amh) |
Creates a handle for autofill manager. | |
int | autofill_manager_destroy (autofill_manager_h amh) |
Destroys autofill manager handle. | |
int | autofill_manager_connect (autofill_manager_h amh, autofill_manager_connection_status_changed_cb callback, void *user_data) |
Connects to autofill manager daemon. | |
int | autofill_manager_set_autofill_service (autofill_manager_h amh, const char *app_id) |
Sets autofill service. | |
int | autofill_manager_get_autofill_service (autofill_manager_h amh, char **service_app_id) |
Gets autofill service app ID. | |
int | autofill_manager_foreach_autofill_service (autofill_manager_h amh, autofill_manager_autofill_service_cb callback, void *user_data) |
Retrieves all autofill services. | |
Typedefs | |
typedef struct autofill_manager_s * | autofill_manager_h |
The autofill manager handle. | |
typedef void(* | autofill_manager_connection_status_changed_cb )(autofill_manager_h amh, autofill_manager_connection_status_e status, void *user_data) |
Called when the connection status is changed. | |
typedef bool(* | autofill_manager_autofill_service_cb )(const char *app_id, void *user_data) |
Called for each autofill service information. |
Typedef Documentation
typedef bool(* autofill_manager_autofill_service_cb)(const char *app_id, void *user_data) |
Called for each autofill service information.
- Since :
- 5.5
- Remarks:
- app_id should not be freed and can be used only in the callback.
- Parameters:
-
[in] app_id The autofill service app ID [in] user_data The user data to be passed to the callback function
- Returns:
true
to continue with the next iteration of the loop, otherwisefalse
to break out of the loop
- Precondition:
- autofill_manager_foreach_autofill_service() will invoke this callback.
typedef void(* autofill_manager_connection_status_changed_cb)(autofill_manager_h amh, autofill_manager_connection_status_e status, void *user_data) |
Called when the connection status is changed.
- Since :
- 5.5
- Remarks:
- amh should not be freed and can be used only in the callback.
- Parameters:
-
[in] amh The autofill manager handle [in] status The connection status [in] user_data The user data passed from the callback function
- See also:
- autofill_manager_connect()
typedef struct autofill_manager_s* autofill_manager_h |
The autofill manager handle.
- Since :
- 5.5
Enumeration Type Documentation
Function Documentation
int autofill_manager_connect | ( | autofill_manager_h | amh, |
autofill_manager_connection_status_changed_cb | callback, | ||
void * | user_data | ||
) |
Connects to autofill manager daemon.
- Warning:
- This is not for use by third-party applications.
- Since :
- 5.5
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/autofillmanager
- Parameters:
-
[in] amh The autofill manager handle [in] callback The callback function to register [in] user_data The user data to be passed to the callback function
- Returns:
- 0 on success, otherwise a negative error value
- Return values:
-
AUTOFILL_ERROR_NONE No error AUTOFILL_ERROR_PERMISSION_DENIED The application does not have the privilege to call this function AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter AUTOFILL_ERROR_OPERATION_FAILED Operation failure
int autofill_manager_create | ( | autofill_manager_h * | amh | ) |
Creates a handle for autofill manager.
- Warning:
- This is not for use by third-party applications.
- Since :
- 5.5
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/autofillmanager
- Remarks:
- If the function succeeds, amh handle must be released with autofill_manager_destroy().
- Parameters:
-
[out] amh The autofill manager handle
- Returns:
- 0 on success, otherwise a negative error value
- Return values:
-
AUTOFILL_ERROR_NONE No error AUTOFILL_ERROR_PERMISSION_DENIED The application does not have the privilege to call this function AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter AUTOFILL_ERROR_OUT_OF_MEMORY Out of memory
- See also:
- autofill_manager_destroy()
int autofill_manager_destroy | ( | autofill_manager_h | amh | ) |
Destroys autofill manager handle.
- Warning:
- This is not for use by third-party applications.
- Since :
- 5.5
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/autofillmanager
- Parameters:
-
[in] amh The autofill manager handle
- Returns:
- 0 on success, otherwise a negative error value
- Return values:
-
AUTOFILL_ERROR_NONE No error AUTOFILL_ERROR_PERMISSION_DENIED The application does not have the privilege to call this function AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
- See also:
- autofill_manager_create()
int autofill_manager_foreach_autofill_service | ( | autofill_manager_h | amh, |
autofill_manager_autofill_service_cb | callback, | ||
void * | user_data | ||
) |
Retrieves all autofill services.
- Warning:
- This is not for use by third-party applications.
- Since :
- 5.5
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/autofillmanager
- Parameters:
-
[in] amh The autofill manager handle [in] callback The callback function to register [in] user_data The user data to be passed to the callback function
- Returns:
- 0 on success, otherwise a negative error value
- Return values:
-
AUTOFILL_ERROR_NONE No error AUTOFILL_ERROR_PERMISSION_DENIED The application does not have the privilege to call this function AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter AUTOFILL_ERROR_OPERATION_FAILED Operation failure
int autofill_manager_get_autofill_service | ( | autofill_manager_h | amh, |
char ** | service_app_id | ||
) |
Gets autofill service app ID.
- Warning:
- This is not for use by third-party applications.
- Since :
- 5.5
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/autofillmanager
- Remarks:
- service_app_id must be released using free().
- Parameters:
-
[in] amh The autofill manager handle [out] service_app_id The autofill service app ID
- Returns:
- 0 on success, otherwise a negative error value
- Return values:
-
AUTOFILL_ERROR_NONE No error AUTOFILL_ERROR_PERMISSION_DENIED The application does not have the privilege to call this function AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter
int autofill_manager_set_autofill_service | ( | autofill_manager_h | amh, |
const char * | app_id | ||
) |
Sets autofill service.
- Warning:
- This is not for use by third-party applications.
- Since :
- 5.5
- Privilege Level:
- platform
- Privilege:
- http://tizen.org/privilege/autofillmanager
- Parameters:
-
[in] amh The autofill manager handle [in] app_id The autofill service app ID
- Returns:
- 0 on success, otherwise a negative error value
- Return values:
-
AUTOFILL_ERROR_NONE No error AUTOFILL_ERROR_PERMISSION_DENIED The application does not have the privilege to call this function AUTOFILL_ERROR_INVALID_PARAMETER Invalid parameter