語言

ContentResolver.RemovePeriodicSync(Account, String, Bundle) 方法

定義

移除週期性同步。

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

參數

account
Account

週期同步的帳目

authority
String

週期同步的提供者會移除

extras
Bundle

週期同步的額外部分要移除

屬性

備註

移除週期性同步。如果帳號、權限和額外內容與現有的定期同步不符,則不會有影響。

此方法要求呼叫者持有權限 android.Manifest.permission#WRITE_SYNC_SETTINGS。

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

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

適用於