語言

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 如果快取和連線不是空,則快取狀態會被設定。

屬性

備註

設定快取狀態。

如果 enabled,則啟用快取與預取。 否則,請關閉快取和預取功能。 注意:預設情況下快取是啟用的。

Java 文件 android.accessibilityservice.AccessibilityService.setCacheEnabled(boolean)。

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

適用於