Mobile Development 10.11 | webMethods Mobile SuiteWeb Help | Using webMethods Mobile Designer | Creating Mobile Application Projects | Coding a Mobile Application | Image Caching | Managing the Image Cache
 
Managing the Image Cache
It can be necessary to remove images from the cache, for instance, if the application is about to perform a memory-intensive action or if an image is not needed for a long period of time. The nUIController class provides additional static methods to clear the image cache. nUIController.clearCache() removes all images from the image cache. nUIController.clearCache(String) removes a single image from the cache, with the path and file name provided that was entered when loading it initially.
Note:
Although these methods are also available in the Image class itself, NativeUI performs additional management. Therefore, you are recommended to use the methods in nUIController.