|
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||
public interface IPeriodicSyncManager
Interface to deal with the wrapper of periodic sync manager.
| メソッドの概要 | |
|---|---|
void |
applySyncPeriod(int period)
Applies sync period and enqueue the sync request. |
void |
applySyncPeriod(int period,
android.os.Bundle args)
Applies sync period and enqueue the sync request. |
void |
cancelSync()
Cancels current sync progress. |
void |
disableSync()
Disables periodic sync. |
void |
enableSync()
Enables periodic sync. |
android.accounts.Account |
getAccount()
Returns Account that is associated for the periodic sync of the auhtority. |
java.lang.String |
getAuthority()
Returns provider authority for the periodic sync. |
FallbackRunnable |
getFallbackRunnable()
|
boolean |
isSyncable()
Checks if the periodic sync of the provider authority is set as syncable or not. |
boolean |
isSyncActive()
Checks if the periodic sync of the provider authority is currently working or not. |
boolean |
isSyncEnabled()
Checks if the provider authority has been configured as automatic periodic sync enabled for the account or not. |
boolean |
isSyncPending()
Checks if the periodic sync of the provider authority is currently pending to work or not. |
void |
requestSync()
Request on demand sync. |
void |
requestSync(android.os.Bundle args)
Requests on demand sync. |
void |
setNotSyncable()
Sets the provider authority as not syncable. |
void |
setSyncable()
Sets the provider authority as syncable. |
| メソッドの詳細 |
|---|
void applySyncPeriod(int period)
period - the period of each sync.ContentResolver.addPeriodicSync(android.accounts.Account, String, android.os.Bundle, long)
void applySyncPeriod(int period,
android.os.Bundle args)
period - the period of each sync.args - extra arguments for the request.ContentResolver.addPeriodicSync(android.accounts.Account, String, android.os.Bundle, long)void requestSync()
ContentResolver.requestSync(android.accounts.Account, String, android.os.Bundle)void requestSync(android.os.Bundle args)
args - extra arguments for the request.ContentResolver.requestSync(android.accounts.Account, String, android.os.Bundle)void cancelSync()
ContentResolver.cancelSync(android.accounts.Account, String)void enableSync()
ContentResolver.setSyncAutomatically(android.accounts.Account, String, boolean)void disableSync()
ContentResolver.setSyncAutomatically(android.accounts.Account, String, boolean)void setSyncable()
ContentResolver.setIsSyncable(android.accounts.Account, String, int)void setNotSyncable()
ContentResolver.setIsSyncable(android.accounts.Account, String, int)boolean isSyncEnabled()
ContentResolver.getSyncAutomatically(android.accounts.Account, String)boolean isSyncActive()
ContentResolver.isSyncActive(android.accounts.Account, String)boolean isSyncPending()
ContentResolver.isSyncPending(android.accounts.Account, String)boolean isSyncable()
ContentResolver.getIsSyncable(android.accounts.Account, String)@Nonnull android.accounts.Account getAccount()
Account that is associated for the periodic sync of the auhtority.
@Nonnull java.lang.String getAuthority()
@Nonnull FallbackRunnable getFallbackRunnable()
|
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||