public interface Sync
Modifier and Type | Method and Description |
---|---|
void |
addListener(SyncListener listener)
Add the listener implementation to the sync process.
|
void |
initSync()
Initializes the sync.
|
void |
initSync(String passPhrase)
Initializes the sync with passPhrase This method needs to be called before calling any other sync API.
|
void |
initSyncInBackground(String passPhrase,
SyncCallback syncCallback)
Initializes the sync in the background thread with passPhrase.
|
void |
initSyncInBackground(SyncCallback syncCallback)
Initializes the sync in the background thread with passPhrase.
|
void |
isUpgradeRequiredInBackground()
check whether sync upgrade is required from sync server
|
void |
performUpgradeInBackground()
perform sync upgrade
|
void |
resetSync()
Reset the local device database.
|
void |
resetSyncInBackground(SyncCallback syncCallback)
Reset the local device database in the background thread.
|
void |
resetSyncOptions()
Resets all sync options to default values
|
void |
setAuthToken(String authTokem)
Sets the auth token for the synchronization
|
void |
setDownloadBatchSize(int batchSize)
Sets download batch size, default value is 500
|
void |
setPassword(String pwd)
Sets the password for authenticating during synchronization.
|
void |
setSchema(String[] schema)
Used to set the schema dynamically
|
void |
setServerURL(String url)
Sets the sync server URL without the port
|
void |
setServerURL(String url,
int portNo)
Sets the sync server URL and port
|
void |
setServerURL(String url,
int portNo,
boolean isSecure)
Sets the sync server URL and port
|
void |
setSyncOptions(SyncOptions syncOptions)
Sets various sync options
|
void |
setUploadBatchSize(int batchSize)
Sets upload batch size, default value is 50
|
void |
setUserId(String userId)
Sets the userid for authenticating during synchronization.
|
void |
startSessionInBackground()
Start the sync in background thread
|
void setServerURL(String url) throws KonyException
url
- KonyException
void setServerURL(String url, int portNo) throws KonyException
url
- portNo
- KonyException
void setServerURL(String url, int portNo, boolean isSecure) throws KonyException
url
- portNo
- isSecure
- - if true secure way of sending request to Sync serverKonyException
void initSync() throws KonyException
KonyException
void initSync(String passPhrase) throws KonyException
passPhrase
- KonyException
void initSyncInBackground(SyncCallback syncCallback)
syncCallback
- void initSyncInBackground(String passPhrase, SyncCallback syncCallback)
passPhrase
- syncCallback
- void startSessionInBackground()
void addListener(SyncListener listener)
listener
- void setAuthToken(String authTokem) throws KonyException
authTokem
- KonyException
void setUserId(String userId) throws KonyException
userId
- KonyException
void setPassword(String pwd) throws KonyException
pwd
- KonyException
void resetSync() throws KonyException
KonyException
void resetSyncInBackground(SyncCallback syncCallback)
syncCallback
- void setDownloadBatchSize(int batchSize) throws KonyException
batchSize
- KonyException
void setUploadBatchSize(int batchSize) throws KonyException
batchSize
- KonyException
void setSyncOptions(SyncOptions syncOptions) throws KonyException
syncOptions
- KonyException
SyncOptions
void resetSyncOptions() throws KonyException
KonyException
void isUpgradeRequiredInBackground()
KonyException
void performUpgradeInBackground()
KonyException
void setSchema(String[] schema)
schema
-