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#
Copy
public class SyncAdapter
Inheritance
SyncAdapter

Methods

View Source

SetSyncEventCallbacks(SyncAdapter.StartSyncCallback, SyncAdapter.CancelSyncCallback)

Sets the client (sync adapter) callback functions.

Declaration
C#
Copy
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
ArgumentNullException

Thrown when any of the arguments are null.

InvalidOperationException

Thrown when the application calling this API cannot be a sync adapter.

API Level: 4
View Source

UnsetSyncEventCallbacks()

Unsets the client (sync adapter) callback functions.

Declaration
C#
Copy
public void UnsetSyncEventCallbacks()
Exceptions
Type Condition
Exception

Thrown when sync manager internal error occurs.

API Level: 4