Tizen Native API  6.0
Autofill service

The Autofill service API provides the functions to operate Autofill service.

Required Header

#include <autofill_service.h>

Overview

Autofill Service application is a service application to save the user input and provide the data previously entered by the user. Using the Autofill service functions, Autofill service application developers can implement their own autofill service to serve the autofill information.

Functions

int autofill_service_initialize (void)
 Initializes autofill service library.
int autofill_service_deinitialize (void)
 Deinitializes autofill service library.
int autofill_service_set_auth_info_requested_cb (autofill_service_auth_info_requested_cb callback, void *user_data)
 Sets the callback to receive the request of authentication information.
int autofill_service_unset_auth_info_requested_cb (void)
 Unsets the callback to receive the request of authentication information.
int autofill_service_send_auth_info (int context_id, autofill_auth_info_h h)
 Sends the authentication information.
int autofill_service_set_fill_requested_cb (autofill_service_fill_requested_cb callback, void *user_data)
 Sets the callback to receive the fill request.
int autofill_service_unset_fill_requested_cb (void)
 Unsets the callback to receive the fill request.
int autofill_service_set_cancel_fill_requested_cb (autofill_service_cancel_fill_requested_cb callback, void *user_data)
 Sets the callback to receive the cancellation of autofill request.
int autofill_service_unset_cancel_fill_requested_cb (void)
 Unsets the callback to receive the cancellation of autofill request.
int autofill_service_send_fill_response (int context_id, autofill_fill_response_h h)
 Sends the fill response.
int autofill_service_set_committed_cb (autofill_service_committed_cb callback, void *user_data)
 Sets the callback to receive the commit request.
int autofill_service_unset_committed_cb (void)
 Unsets the callback to receive the commit request.
int autofill_service_set_terminate_received_cb (autofill_service_terminate_received_cb callback, void *user_data)
 Sets the callback to receive the terminate request.
int autofill_service_unset_terminate_received_cb (void)
 Unsets the callback to receive the terminate request.
int autofill_service_send_error_info (int context_id, autofill_error_info_h h)
 Sends error to the autofill client.

Typedefs

typedef void(* autofill_service_auth_info_requested_cb )(int context_id, autofill_view_info_h vi, void *user_data)
 Called when receiving authentication information request.
typedef void(* autofill_service_fill_requested_cb )(int context_id, autofill_view_info_h vi, void *user_data)
 Called when receiving fill request.
typedef void(* autofill_service_cancel_fill_requested_cb )(int context_id, autofill_view_info_h vi, void *user_data)
 Called when receiving the cancellation of autofill request.
typedef void(* autofill_service_committed_cb )(int context_id, autofill_save_view_info_h vi, void *user_data)
 Called when receiving commit request.
typedef void(* autofill_service_terminate_received_cb )(void *user_data)
 Called when receiving terminate request.

Typedef Documentation

typedef void(* autofill_service_auth_info_requested_cb)(int context_id, autofill_view_info_h vi, void *user_data)

Called when receiving authentication information request.

Since :
5.5
Remarks:
vi should not be freed and can be used only in the callback.
Parameters:
[in]context_idThe autofill context identification value of an associated autofill client handle
[in]viThe autofill view info handle
[in]user_dataThe user data passed from the callback function
See also:
autofill_service_set_auth_info_requested_cb()
typedef void(* autofill_service_cancel_fill_requested_cb)(int context_id, autofill_view_info_h vi, void *user_data)

Called when receiving the cancellation of autofill request.

Since :
5.5
Remarks:
vi should not be freed and can be used only in the callback.
Parameters:
[in]context_idThe autofill context identification value of an associated autofill client handle
[in]viThe autofill view info handle
[in]user_dataThe user data passed from the callback function
See also:
autofill_service_set_cancel_fill_requested_cb()
typedef void(* autofill_service_committed_cb)(int context_id, autofill_save_view_info_h vi, void *user_data)

Called when receiving commit request.

Since :
5.5
Remarks:
vi should not be freed and can be used only in the callback.
Parameters:
[in]context_idThe autofill context identification value of an associated autofill client handle
[in]viThe autofill save view info handle
[in]user_dataThe user data passed from the callback function
See also:
autofill_service_set_committed_cb()
typedef void(* autofill_service_fill_requested_cb)(int context_id, autofill_view_info_h vi, void *user_data)

Called when receiving fill request.

Since :
5.5
Remarks:
vi should not be freed and can be used only in the callback.
Parameters:
[in]context_idThe autofill context identification value of an associated autofill client handle
[in]viThe autofill view info handle
[in]user_dataThe user data passed from the callback function
See also:
autofill_service_set_fill_requested_cb()
typedef void(* autofill_service_terminate_received_cb)(void *user_data)

Called when receiving terminate request.

Since :
5.5
Parameters:
[in]user_dataThe user data passed from the callback function
See also:
autofill_service_set_terminate_received_cb()

Function Documentation

Deinitializes autofill service library.

Since :
5.5
Returns:
0 on success, otherwise a negative error value
Return values:
AUTOFILL_ERROR_NONENo error

Initializes autofill service library.

Since :
5.5
Returns:
0 on success, otherwise a negative error value
Return values:
AUTOFILL_ERROR_NONENo error
int autofill_service_send_auth_info ( int  context_id,
autofill_auth_info_h  h 
)

Sends the authentication information.

Since :
5.5
Parameters:
[in]context_idThe autofill context identification value of an associated autofill client handle
[in]hThe autofill authentication info handle
Returns:
0 on success, otherwise a negative error value
Return values:
AUTOFILL_ERROR_NONENo error
AUTOFILL_ERROR_INVALID_PARAMETERInvalid parameter

Sends error to the autofill client.

Since :
5.5
Parameters:
[in]context_idThe autofill context identification value of an associated autofill client handle
[in]hThe autofill error info handle
Returns:
0 on success, otherwise a negative error value
Return values:
AUTOFILL_ERROR_NONENo error
AUTOFILL_ERROR_INVALID_PARAMETERInvalid parameter

Sends the fill response.

Since :
5.5
Parameters:
[in]context_idThe autofill context identification value of an associated autofill client handle
[in]hThe autofill fill response handle
Returns:
0 on success, otherwise a negative error value
Return values:
AUTOFILL_ERROR_NONENo error
AUTOFILL_ERROR_INVALID_PARAMETERInvalid parameter

Sets the callback to receive the request of authentication information.

Since :
5.5
Parameters:
[in]callbackThe callback function to register
[in]user_dataThe user data to be passed to the callback function
Returns:
0 on success, otherwise a negative error value
Return values:
AUTOFILL_ERROR_NONENo error
AUTOFILL_ERROR_INVALID_PARAMETERInvalid parameter

Sets the callback to receive the cancellation of autofill request.

Since :
5.5
Parameters:
[in]callbackThe callback function to register
[in]user_dataThe user data to be passed to the callback function
Returns:
0 on success, otherwise a negative error value
Return values:
AUTOFILL_ERROR_NONENo error
AUTOFILL_ERROR_INVALID_PARAMETERInvalid parameter
int autofill_service_set_committed_cb ( autofill_service_committed_cb  callback,
void *  user_data 
)

Sets the callback to receive the commit request.

Since :
5.5
Parameters:
[in]callbackThe callback function to register
[in]user_dataThe user data to be passed to the callback function
Returns:
0 on success, otherwise a negative error value
Return values:
AUTOFILL_ERROR_NONENo error
AUTOFILL_ERROR_INVALID_PARAMETERInvalid parameter

Sets the callback to receive the fill request.

Since :
5.5
Parameters:
[in]callbackThe callback function to register
[in]user_dataThe user data to be passed to the callback function
Returns:
0 on success, otherwise a negative error value
Return values:
AUTOFILL_ERROR_NONENo error
AUTOFILL_ERROR_INVALID_PARAMETERInvalid parameter

Sets the callback to receive the terminate request.

Since :
5.5
Parameters:
[in]callbackThe callback function to register
[in]user_dataThe user data to be passed to the callback function
Returns:
0 on success, otherwise a negative error value
Return values:
AUTOFILL_ERROR_NONENo error
AUTOFILL_ERROR_INVALID_PARAMETERInvalid parameter

Unsets the callback to receive the request of authentication information.

Since :
5.5
Returns:
0 on success, otherwise a negative error value
Return values:
AUTOFILL_ERROR_NONENo error

Unsets the callback to receive the cancellation of autofill request.

Since :
5.5
Returns:
0 on success, otherwise a negative error value
Return values:
AUTOFILL_ERROR_NONENo error

Unsets the callback to receive the commit request.

Since :
5.5
Returns:
0 on success, otherwise a negative error value
Return values:
AUTOFILL_ERROR_NONENo error

Unsets the callback to receive the fill request.

Since :
5.5
Returns:
0 on success, otherwise a negative error value
Return values:
AUTOFILL_ERROR_NONENo error

Unsets the callback to receive the terminate request.

Since :
5.5
Returns:
0 on success, otherwise a negative error value
Return values:
AUTOFILL_ERROR_NONENo error