react-native-notifications-pfy
Version:
Advanced Push Notifications (Silent, interactive notifications) for iOS & Android + Schedule Module
25 lines (24 loc) • 1.25 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
class EventsRegistry {
constructor(nativeEventsReceiver, completionCallbackWrapper) {
this.nativeEventsReceiver = nativeEventsReceiver;
this.completionCallbackWrapper = completionCallbackWrapper;
}
registerRemoteNotificationsRegistered(callback) {
return this.nativeEventsReceiver.registerRemoteNotificationsRegistered(callback);
}
registerNotificationReceivedForeground(callback) {
return this.nativeEventsReceiver.registerNotificationReceived(this.completionCallbackWrapper.wrapReceivedForegroundCallback(callback));
}
registerNotificationReceivedBackground(callback) {
return this.nativeEventsReceiver.registerNotificationReceived(this.completionCallbackWrapper.wrapReceivedBackgroundCallback(callback));
}
registerNotificationOpened(callback) {
return this.nativeEventsReceiver.registerNotificationOpened(this.completionCallbackWrapper.wrapOpenedCallback(callback));
}
registerRemoteNotificationsRegistrationFailed(callback) {
return this.nativeEventsReceiver.registerRemoteNotificationsRegistrationFailed(callback);
}
}
exports.EventsRegistry = EventsRegistry;