SyncRequest.Builder.SetIgnoreSettings(Boolean) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
方便設定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)。