AccessibilityService.SetCacheEnabled(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets the cache status.
[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
Parameters
- enabled
- Boolean
whether to enable or disable the cache.
Returns
true
if the cache and connection are not null, so the cache status is set.
- Attributes
Remarks
Sets the cache status.
If enabled
, enable the cache and prefetching. Otherwise, disable the cache and prefetching. Note: By default the cache is enabled.
Java documentation for android.accessibilityservice.AccessibilityService.setCacheEnabled(boolean)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.