|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||
java.lang.Objectcom.kii.cloud.filesync.KiiFS
public final class KiiFS
Kii File System (sync available).
| Field Summary | |
|---|---|
static java.lang.String |
TAG
|
| Method Summary | |
|---|---|
static void |
reset(Context context)
Reset all sync specific data. |
static void |
sync(Context context,
java.io.File dir,
Account account,
ProgressCallback callback)
Make sync the dir. |
static void |
sync(Context context,
java.io.File dir,
java.lang.String username,
java.lang.String password,
ProgressCallback callback)
Make sync the dir. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String TAG
| Method Detail |
|---|
public static void reset(Context context)
throws java.lang.IllegalStateException
context - Context to store sync related data.
java.lang.IllegalStateException - Sync is running, terminate it first.
public static void sync(Context context,
java.io.File dir,
Account account,
ProgressCallback callback)
throws java.lang.InterruptedException,
java.lang.IllegalArgumentException,
java.lang.IllegalStateException,
SyncException,
java.util.MissingResourceException
context - Context to store sync related data.dir - Sync target directory.account - Account to sync.callback - Progress handler.
java.lang.InterruptedException - The sync was interrupted.
java.lang.IllegalArgumentException - Something wrong for args (dir or so).
java.lang.IllegalStateException - Already syncing.
SyncException - Error occured during sync.
java.util.MissingResourceException
public static void sync(Context context,
java.io.File dir,
java.lang.String username,
java.lang.String password,
ProgressCallback callback)
throws java.lang.InterruptedException,
java.lang.IllegalArgumentException,
java.lang.IllegalStateException,
SyncException,
java.util.MissingResourceException
context - Context to store sync related data.dir - Sync target directory.username - Username.
This api only accept username for authentication.
If you want to use email/phone for authentication,
Use sync(Context, File, Account, ProgressCallback)password - Password.callback - Progress handler.
java.lang.InterruptedException - The sync was interrupted.
java.lang.IllegalArgumentException - Something wrong for args (dir or so).
java.lang.IllegalStateException - Already syncing.
SyncException - Error occured during sync.
java.util.MissingResourceExceptionsync(Context, File, Account, ProgressCallback)
|
||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||