initialize static method

FutureOr initialize({
  1. String? appKey,
  2. IronSourceListener? listener,
  3. bool gdprConsent = true,
  4. 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
  });
}