getMediaCacheList Method

This method will get an array containing all the names of all the previously cached files.

var cacheArray = intel.xdk.cache.getMediaCacheList();

Description:

This method will get an array containing all the names of all the previously cached files using the addToMediaCache command. These names can then be used in calls to getMediaCacheLocalURL.

Available Platforms:

Returns:

cacheArray: An array of URLs that have been cached on the device using the addToMediaCache method.

Example:


var cacheArray = intel.xdk.cache.getMediaCacheList();
for (var x=0;x<cacheArray.length;x++)
{
 alert( cacheArray[x] + "  " + intel.xdk.cache.getMediaCacheLocalURL(cacheArray[x]) );
}
            
Для получения подробной информации о возможностях оптимизации компилятора обратитесь к нашему Уведомлению об оптимизации.