Class SyncAdapter
Definition
- Namespace:
- Tizen.Account.SyncManager
- Assembly:
- Tizen.Account.SyncManager.dll
This class contains the delegates to be called upon scheduling a sync operation.
public class SyncAdapter
- Inheritance
-
objectSyncAdapter
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 |
|---|---|---|
| SyncAdapter.StartSyncCallback | startSyncCb | A callback function to be called by the sync manager for performing the sync operation. |
| SyncAdapter.CancelSyncCallback | cancelSyncCb | A callback function to be called by the sync manager for cancelling the sync operation. |
Exceptions
| Type | Condition |
|---|---|
| System.ArgumentNullException | Thrown when any of the arguments are null. |
| System.InvalidOperationException | 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.Exception | Thrown when sync manager internal error occurs. |