startNotificationForegroundWillDisplayHandler method

  1. @override
Future<void> startNotificationForegroundWillDisplayHandler(
  1. NotificationForegroundWillDisplayHandler handler
)
override

Implementation

@override
Future<void> startNotificationForegroundWillDisplayHandler(
  NotificationForegroundWillDisplayHandler handler,
) async {
  // 핸들러 등록
  _notificationForegroundWillDisplayHandler = handler;

  debugPrint('_notificationForegroundWillDisplayHandler has been registered');

  // 네이티브 메서드 호출
  await methodChannel.invokeMethod<void>(
    'startNotificationForegroundWillDisplayHandler',
  );
}