Udostępnij za pośrednictwem


SyncAdapterType.IsAlwaysSyncable Property

Definition

If true then the SyncManager will never issue an initialization sync to the SyncAdapter and will instead automatically call ContentResolver#setIsSyncable(android.accounts.Account, String, int) with a value of 1 for each account and provider that this sync adapter supports.

public virtual bool IsAlwaysSyncable { [Android.Runtime.Register("isAlwaysSyncable", "()Z", "GetIsAlwaysSyncableHandler")] get; }
[<get: Android.Runtime.Register("isAlwaysSyncable", "()Z", "GetIsAlwaysSyncableHandler")>]
member this.IsAlwaysSyncable : bool

Property Value

true if the SyncAdapter does not require initialization and if it is ok for the SyncAdapter to treat it as syncable automatically.

Attributes

Remarks

If true then the SyncManager will never issue an initialization sync to the SyncAdapter and will instead automatically call ContentResolver#setIsSyncable(android.accounts.Account, String, int) with a value of 1 for each account and provider that this sync adapter supports.

Java documentation for android.content.SyncAdapterType.isAlwaysSyncable().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to