|
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||
java.lang.Objectcom.eligor.SimplePeriodicSyncManager
public class SimplePeriodicSyncManager
Concrete class that is an implementation of IPeriodicSyncManager.
| フィールドの概要 | |
|---|---|
static int |
FLAG_NOT_SYNCABLE
|
static int |
FLAG_SYNCABLE
|
static int |
FLAG_UNKNOWN
|
| コンストラクタの概要 | |
|---|---|
SimplePeriodicSyncManager(android.accounts.Account account,
java.lang.String authority,
FallbackRunnable fallbackRunnable)
|
|
| メソッドの概要 | |
|---|---|
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. |
| クラス java.lang.Object から継承されたメソッド |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| フィールドの詳細 |
|---|
public static final int FLAG_SYNCABLE
public static final int FLAG_NOT_SYNCABLE
public static final int FLAG_UNKNOWN
| コンストラクタの詳細 |
|---|
public SimplePeriodicSyncManager(@Nonnull
android.accounts.Account account,
@Nonnull
java.lang.String authority,
@Nonnull
FallbackRunnable fallbackRunnable)
| メソッドの詳細 |
|---|
public void applySyncPeriod(int period)
period - the period of each sync.ContentResolver.addPeriodicSync(android.accounts.Account, String, android.os.Bundle, long)
public 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)public void requestSync()
ContentResolver.requestSync(android.accounts.Account, String, android.os.Bundle)public void requestSync(android.os.Bundle args)
args - extra arguments for the request.ContentResolver.requestSync(android.accounts.Account, String, android.os.Bundle)public void cancelSync()
ContentResolver.cancelSync(android.accounts.Account, String)public void enableSync()
ContentResolver.setSyncAutomatically(android.accounts.Account, String, boolean)public void disableSync()
ContentResolver.setSyncAutomatically(android.accounts.Account, String, boolean)public void setSyncable()
ContentResolver.setIsSyncable(android.accounts.Account, String, int)public void setNotSyncable()
ContentResolver.setIsSyncable(android.accounts.Account, String, int)public boolean isSyncable()
ContentResolver.getIsSyncable(android.accounts.Account, String)public boolean isSyncEnabled()
ContentResolver.getSyncAutomatically(android.accounts.Account, String)public boolean isSyncActive()
ContentResolver.isSyncActive(android.accounts.Account, String)public boolean isSyncPending()
ContentResolver.isSyncPending(android.accounts.Account, String)@Nonnull public android.accounts.Account getAccount()
Account that is associated for the periodic sync of the auhtority.
IPeriodicSyncManager 内の getAccount@Nonnull public java.lang.String getAuthority()
IPeriodicSyncManager 内の getAuthority@Nonnull public FallbackRunnable getFallbackRunnable()
IPeriodicSyncManager 内の getFallbackRunnable
|
||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | |||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | |||||||