Partager via


AbstractThreadedSyncAdapter Constructors

Definition

Overloads

AbstractThreadedSyncAdapter(Context, Boolean)

Creates an AbstractThreadedSyncAdapter.

AbstractThreadedSyncAdapter(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

AbstractThreadedSyncAdapter(Context, Boolean, Boolean)

Creates an AbstractThreadedSyncAdapter.

AbstractThreadedSyncAdapter(Context, Boolean)

Creates an AbstractThreadedSyncAdapter.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;Z)V", "")]
public AbstractThreadedSyncAdapter (Android.Content.Context? context, bool autoInitialize);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;Z)V", "")>]
new Android.Content.AbstractThreadedSyncAdapter : Android.Content.Context * bool -> Android.Content.AbstractThreadedSyncAdapter

Parameters

context
Context

the android.content.Context that this is running within.

autoInitialize
Boolean

if true then sync requests that have ContentResolver#SYNC_EXTRAS_INITIALIZE set will be internally handled by AbstractThreadedSyncAdapter by calling ContentResolver#setIsSyncable(android.accounts.Account, String, int) with 1 if it is currently set to <0.

Attributes

Remarks

Creates an AbstractThreadedSyncAdapter.

Java documentation for android.content.AbstractThreadedSyncAdapter.AbstractThreadedSyncAdapter(android.content.Context, boolean).

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

AbstractThreadedSyncAdapter(IntPtr, JniHandleOwnership)

A constructor used when creating managed representations of JNI objects; called by the runtime.

protected AbstractThreadedSyncAdapter (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.Content.AbstractThreadedSyncAdapter : nativeint * Android.Runtime.JniHandleOwnership -> Android.Content.AbstractThreadedSyncAdapter

Parameters

javaReference
IntPtr

nativeint

A IntPtrcontaining a Java Native Interface (JNI) object reference.

transfer
JniHandleOwnership

A JniHandleOwnershipindicating how to handle javaReference

Remarks

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

AbstractThreadedSyncAdapter(Context, Boolean, Boolean)

Creates an AbstractThreadedSyncAdapter.

[Android.Runtime.Register(".ctor", "(Landroid/content/Context;ZZ)V", "")]
public AbstractThreadedSyncAdapter (Android.Content.Context? context, bool autoInitialize, bool allowParallelSyncs);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;ZZ)V", "")>]
new Android.Content.AbstractThreadedSyncAdapter : Android.Content.Context * bool * bool -> Android.Content.AbstractThreadedSyncAdapter

Parameters

context
Context

the android.content.Context that this is running within.

autoInitialize
Boolean

if true then sync requests that have ContentResolver#SYNC_EXTRAS_INITIALIZE set will be internally handled by AbstractThreadedSyncAdapter by calling ContentResolver#setIsSyncable(android.accounts.Account, String, int) with 1 if it is currently set to <0.

allowParallelSyncs
Boolean

if true then allow syncs for different accounts to run at the same time, each in their own thread. This must be consistent with the setting in the SyncAdapter's configuration file.

Attributes

Remarks

Creates an AbstractThreadedSyncAdapter.

Java documentation for android.content.AbstractThreadedSyncAdapter.AbstractThreadedSyncAdapter(android.content.Context, boolean, boolean).

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