listen abstract method

Future<RemoteNotificationListenResponse?> listen({
  1. required Future<void> onMessage(
    1. NotificationValue value
    ),
  2. required Future<void> onMessageOpenedApp(
    1. NotificationValue value
    ),
})

Initialize push notifications.

Push通知の初期化。

Implementation

Future<RemoteNotificationListenResponse?> listen({
  required Future<void> Function(NotificationValue value) onMessage,
  required Future<void> Function(NotificationValue value) onMessageOpenedApp,
});