initializeMethodCall static method

Future<void> initializeMethodCall()

Initialize the callbacks from the native side to dart. It's used to send location data from the native APIs to dart and to inform MBAudience that should update metadata, in response to events (e.g. when the notification permission changes).

Implementation

static Future<void> initializeMethodCall() async {
  if (!_methodCallInitialized) {
    _methodCallInitialized = true;
    _channel.setMethodCallHandler(_mbAudienceHandler);
  }
}