setAutoRefreshInterval method
Sets the autoRefreshInterval value of a banner view
autoRefreshIntervalInSeconds
is the updated value of autoRefreshInterval
inventoryCode
is the optional banner inventory code
placementID
is the optional banner placement ID
At least one of inventoryCode
or placementID
must be filled
to identify the banner
Implementation
Future<bool> setAutoRefreshInterval(
int autoRefreshIntervalInSeconds,
String? inventoryCode,
String? placementID,
) {
assert(
placementID != null || inventoryCode != null,
'placementID or inventoryCode must not be null',
);
assert(
(placementID != null && inventoryCode == null) ||
(placementID == null && inventoryCode != null),
'only one of placementID and inventoryCode can be set',
);
return _instance.setAutoRefreshInterval(
autoRefreshIntervalInSeconds,
inventoryCode,
placementID,
);
}