語言

SyncRequest.Builder.SetIgnoreSettings(Boolean) 方法

定義

方便設定ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS。 不適用於週期同步,且會在 build() 中拋出 IllegalArgumentException。 若被呼叫且設定,則拋出 IllegalArgumentException,DisallowMetered(boolean) 已被設定。

[Android.Runtime.Register("setIgnoreSettings", "(Z)Landroid/content/SyncRequest$Builder;", "GetSetIgnoreSettings_ZHandler")]
public virtual Android.Content.SyncRequest.Builder? SetIgnoreSettings(bool ignoreSettings);
[<Android.Runtime.Register("setIgnoreSettings", "(Z)Landroid/content/SyncRequest$Builder;", "GetSetIgnoreSettings_ZHandler")>]
abstract member SetIgnoreSettings : bool -> Android.Content.SyncRequest.Builder
override this.SetIgnoreSettings : bool -> Android.Content.SyncRequest.Builder

參數

ignoreSettings
Boolean

沒錯,忽略自動同步設定。 默認值 false。

傳回

方便設定ContentResolver.SYNC_EXTRAS_IGNORE_SETTINGS。 不適用於週期同步,且會在 build() 中拋出 IllegalArgumentException。 若被呼叫且設定,則拋出 IllegalArgumentException,DisallowMetered(boolean) 已被設定。

屬性

備註

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

Java 文件 android.content.SyncRequest.Builder.setIgnoreSettings(boolean)。

適用於