AccessibilityService.SetCacheEnabled(Boolean) 方法

定義

設定快取狀態。

[Android.Runtime.Register("setCacheEnabled", "(Z)Z", "GetSetCacheEnabled_ZHandler", ApiSince=33)]
public virtual bool SetCacheEnabled (bool enabled);
[<Android.Runtime.Register("setCacheEnabled", "(Z)Z", "GetSetCacheEnabled_ZHandler", ApiSince=33)>]
abstract member SetCacheEnabled : bool -> bool
override this.SetCacheEnabled : bool -> bool

參數

enabled
Boolean

是要啟用或停用快取。

傳回

true 如果快取和連線不是 Null,則會設定快取狀態。

屬性

備註

設定快取狀態。

如果 enabled為 ,請啟用快取並預先擷取。 否則,請停用快取並預先擷取。 注意:預設會啟用快取。

android.accessibilityservice.AccessibilityService.setCacheEnabled(boolean)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於