setAutoCache static method
Enable or disable the auto caching of an ad of certain type adType
.
When you initialize Appodeal all ads types are set to be downloaded automatically. If you want to prevent this
behaviour you can call this function before the initialization passing false
to the parameter autoCache
.
Use the constants in the class AdType
to specify what ad should be loaded.
Implementation
static Future<void> setAutoCache(int adType, bool autoCache) async {
return _channel.invokeMethod('setAutoCache', {
'adType': adType,
'autoCache': autoCache,
});
}