registerNotificationLifecycleCallbacks static method
Future<void>
registerNotificationLifecycleCallbacks({
- dynamic onPushSDKDidReceiveNotification()?,
- bool onPushSDKDidReceiveNotificationDestination()?,
Implementation
static Future<void> registerNotificationLifecycleCallbacks({
Function(PNNotification)? onPushSDKDidReceiveNotification,
bool Function(String, PNNotificationInteraction)?
onPushSDKDidReceiveNotificationDestination,
}) {
if (onPushSDKDidReceiveNotification != null) {
_onPushSDKDidReceiveNotification = onPushSDKDidReceiveNotification;
}
if (onPushSDKDidReceiveNotificationDestination != null) {
_onPushSDKDidReceiveNotificationDestination =
onPushSDKDidReceiveNotificationDestination;
}
return sdk._defaultChannel
.invokeMethod("registerNotificationLifecycleCallbacks");
}