addMessageReceiver method
void
addMessageReceiver({
- PushCallback? onNotification,
- PushCallback? onMessage,
- PushCallback? onNotificationOpened,
- PushCallback? onNotificationRemoved,
- PushCallback? onAndroidNotificationReceivedInApp,
- PushCallback? onAndroidNotificationClickedWithNoAction,
- PushCallback? onIOSChannelOpened,
- PushCallback? onIOSRegisterDeviceTokenSuccess,
- PushCallback? onIOSRegisterDeviceTokenFailed,
override
Implementation
@override
void addMessageReceiver({
PushCallback? onNotification,
PushCallback? onMessage,
PushCallback? onNotificationOpened,
PushCallback? onNotificationRemoved,
PushCallback? onAndroidNotificationReceivedInApp,
PushCallback? onAndroidNotificationClickedWithNoAction,
PushCallback? onIOSChannelOpened,
PushCallback? onIOSRegisterDeviceTokenSuccess,
PushCallback? onIOSRegisterDeviceTokenFailed,
}) {
_onNotification = onNotification;
_onAndroidNotificationReceivedInApp = onAndroidNotificationReceivedInApp;
_onMessage = onMessage;
_onNotificationOpened = onNotificationOpened;
_onNotificationRemoved = onNotificationRemoved;
_onAndroidNotificationClickedWithNoAction =
onAndroidNotificationClickedWithNoAction;
_onIOSChannelOpened = onIOSChannelOpened;
_onIOSRegisterDeviceTokenSuccess = onIOSRegisterDeviceTokenSuccess;
_onIOSRegisterDeviceTokenFailed = onIOSRegisterDeviceTokenFailed;
methodChannel.setMethodCallHandler(_methodCallHandler);
}