語言

ContentResolver.RequestSync 方法

定義

多載

名稱 Description
RequestSync(SyncRequest)

向 SyncManager 註冊同步。

RequestSync(Account, String, Bundle)

啟動非同步操作。

RequestSync(SyncRequest)

向 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

參數

request
SyncRequest

同步請求提交。

屬性

備註

向 SyncManager 註冊同步。 這些請求是利用 SyncRequest.Builder

Java 文件 android.content.ContentResolver.requestSync(android.content.SyncRequest)

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

RequestSync(Account, String, Bundle)

啟動非同步操作。

[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

參數

account
Account

應該同步哪個帳號

authority
String

應該同步哪個權限

extras
Bundle

任何額外資料要傳給 SyncAdapter。

屬性

備註

啟動非同步操作。 如果你想監控同步進度,可以註冊一個 SyncObserver。 額外組合包中僅可使用以下類型的數值:ul<li 整>數</li><li>long</li><li>li 布林</li><li>浮點數/li<>li li<Double></li><li>弦</li><li>帳戶</li><li>null</li></ul><>

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

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於