webMethods Mobile Suite  | 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.

Copyright © 2010-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.