DocumentLoader is a class in the CPP library that is used to load HTML documents. applicationCacheHost is a member of the DocumentLoader class that provides access to the application cache.
Example 1 - Retrieving the application cache status:
Code:
if (documentLoader->applicationCacheHost()) { auto status = documentLoader->applicationCacheHost()->status(); if (status == ApplicationCacheHost::IDLE) { // Cache is idle } }
This code snippet shows how to retrieve the status of the application cache using documentLoader->applicationCacheHost(). The status can be one of ApplicationCacheHost::IDLE, ApplicationCacheHost::CHECKING, ApplicationCacheHost::DOWNLOADING, ApplicationCacheHost::UPDATEREADY, or ApplicationCacheHost::OBSOLETE.
Example 2 - Clearing the application cache:
Code:
if (documentLoader->applicationCacheHost()) { documentLoader->applicationCacheHost()->remove(); }
This code snippet shows how to clear the application cache using documentLoader->applicationCacheHost()->remove().
Package library: CPP library.
C++ (Cpp) DocumentLoader::applicationCacheHost - 19 examples found. These are the top rated real world C++ (Cpp) examples of DocumentLoader::applicationCacheHost extracted from open source projects. You can rate examples to help us improve the quality of examples.