Udostępnij za pośrednictwem


ContentResolver.RequestSync Method

Definition

Overloads

RequestSync(SyncRequest)

Register a sync with the SyncManager.

RequestSync(Account, String, Bundle)

Start an asynchronous sync operation.

RequestSync(SyncRequest)

Register a sync with the SyncManager.

[Android.Runtime.Register("requestSync", "(Landroid/content/SyncRequest;)V", "")]
public static void RequestSync (Android.Content.SyncRequest? request);
[<Android.Runtime.Register("requestSync", "(Landroid/content/SyncRequest;)V", "")>]
static member RequestSync : Android.Content.SyncRequest -> unit

Parameters

request
SyncRequest
Attributes

Remarks

Register a sync with the SyncManager. These requests are built using the SyncRequest.Builder.

Java documentation for android.content.ContentResolver.requestSync(android.content.SyncRequest).

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

RequestSync(Account, String, Bundle)

Start an asynchronous sync operation.

[Android.Runtime.Register("requestSync", "(Landroid/accounts/Account;Ljava/lang/String;Landroid/os/Bundle;)V", "")]
public static void RequestSync (Android.Accounts.Account? account, string? authority, Android.OS.Bundle? extras);
[<Android.Runtime.Register("requestSync", "(Landroid/accounts/Account;Ljava/lang/String;Landroid/os/Bundle;)V", "")>]
static member RequestSync : Android.Accounts.Account * string * Android.OS.Bundle -> unit

Parameters

account
Account

which account should be synced

authority
String

which authority should be synced

extras
Bundle

any extras to pass to the SyncAdapter.

Attributes

Remarks

Start an asynchronous sync operation. If you want to monitor the progress of the sync you may register a SyncObserver. Only values of the following types may be used in the extras bundle: <ul> <li>Integer</li> <li>Long</li> <li>Boolean</li> <li>Float</li> <li>Double</li> <li>String</li> <li>Account</li> <li>null</li> </ul>

Java documentation for android.content.ContentResolver.requestSync(android.accounts.Account, java.lang.String, android.os.Bundle).

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