Class SyncAdapter
Definition
- Namespace:
- Tizen.Account.SyncManager
- Assembly:
- Tizen.Account.SyncManager.dll
- API Level:
- 4
This class contains the delegates to be called upon scheduling a sync operation.
C#Copypublic class SyncAdapter
- Inheritance
-
System.ObjectSyncAdapter
Methods
View Source
SetSyncEventCallbacks(SyncAdapter.StartSyncCallback, SyncAdapter.CancelSyncCallback)
Sets the client (sync adapter) callback functions.
Declaration
C#Copypublic 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. |
API Level: 4
Declaration
C#Copypublic void UnsetSyncEventCallbacks()
Exceptions
Type | Condition |
---|---|
Exception | Thrown when sync manager internal error occurs. |