initialize static method
FutureOr
initialize({
- String? appKey,
- IronSourceListener? listener,
- bool gdprConsent = true,
- bool ccpaConsent = true,
Implementation
static FutureOr<dynamic> initialize({
final String? appKey,
final IronSourceListener? listener,
bool gdprConsent = true,
bool ccpaConsent = true,
}) async {
_listener = listener;
_channel.setMethodCallHandler(_listener?._handle);
await _channel.invokeMethod('initialize', {
'appKey': appKey,
'gdprConsent': gdprConsent,
'ccpaConsent': ccpaConsent
});
}