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 - KonyExceptionvoid setServerURL(String url, int portNo) throws KonyException
url - portNo - KonyExceptionvoid setServerURL(String url, int portNo, boolean isSecure) throws KonyException
url - portNo - isSecure - - if true secure way of sending request to Sync serverKonyExceptionvoid initSync()
       throws KonyException
KonyExceptionvoid initSync(String passPhrase) throws KonyException
passPhrase - KonyExceptionvoid 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 - KonyExceptionvoid setUserId(String userId) throws KonyException
userId - KonyExceptionvoid setPassword(String pwd) throws KonyException
pwd - KonyExceptionvoid resetSync()
        throws KonyException
KonyExceptionvoid resetSyncInBackground(SyncCallback syncCallback)
syncCallback - void setDownloadBatchSize(int batchSize)
                   throws KonyException
batchSize - KonyExceptionvoid setUploadBatchSize(int batchSize)
                 throws KonyException
batchSize - KonyExceptionvoid setSyncOptions(SyncOptions syncOptions) throws KonyException
syncOptions - KonyExceptionSyncOptionsvoid resetSyncOptions()
               throws KonyException
KonyExceptionvoid isUpgradeRequiredInBackground()
KonyExceptionvoid performUpgradeInBackground()
KonyExceptionvoid setSchema(String[] schema)
schema -