Class SyncAdapter
Definition
- Namespace:
- Tizen.Account.Sync
Manager
- Assembly:
- Tizen.Account.SyncManager.dll
This class contains the delegates to be called upon scheduling a sync operation.
public class SyncAdapter
- Inheritance
-
objectSync
Adapter
Methods
View SourceSetSyncEventCallbacks(StartSyncCallback, CancelSyncCallback)
Sets the client (sync adapter) callback functions.
Declaration
public void SetSyncEventCallbacks(SyncAdapter.StartSyncCallback startSyncCb, SyncAdapter.CancelSyncCallback cancelSyncCb)
Parameters
Type | Name | Description |
---|---|---|
Sync |
startSyncCb | A callback function to be called by the sync manager for performing the sync operation. |
Sync |
cancelSyncCb | A callback function to be called by the sync manager for cancelling the sync operation. |
Exceptions
Type | Condition |
---|---|
System. |
Thrown when any of the arguments are null. |
System. |
Thrown when the application calling this API cannot be a sync adapter. |
UnsetSyncEventCallbacks()
Unsets the client (sync adapter) callback functions.
Declaration
public void UnsetSyncEventCallbacks()
Exceptions
Type | Condition |
---|---|
System. |
Thrown when sync manager internal error occurs. |