UNPKG

capacitor-notification-reader

Version:

Capacitor plugin to read and persist Android notifications with RoomDB storage

90 lines (82 loc) 3.65 kB
var capacitorNotificationReader = (function (exports, core) { 'use strict'; /** * Android notification categories */ exports.NotificationCategory = void 0; (function (NotificationCategory) { NotificationCategory["ALARM"] = "alarm"; NotificationCategory["CALL"] = "call"; NotificationCategory["EMAIL"] = "email"; NotificationCategory["ERROR"] = "err"; NotificationCategory["EVENT"] = "event"; NotificationCategory["LOCATION_SHARING"] = "location_sharing"; NotificationCategory["MESSAGE"] = "msg"; NotificationCategory["MISSED_CALL"] = "missed_call"; NotificationCategory["NAVIGATION"] = "navigation"; NotificationCategory["PROGRESS"] = "progress"; NotificationCategory["PROMO"] = "promo"; NotificationCategory["RECOMMENDATION"] = "recommendation"; NotificationCategory["REMINDER"] = "reminder"; NotificationCategory["SERVICE"] = "service"; NotificationCategory["SOCIAL"] = "social"; NotificationCategory["STATUS"] = "status"; NotificationCategory["STOPWATCH"] = "stopwatch"; NotificationCategory["SYSTEM"] = "sys"; NotificationCategory["TRANSPORT"] = "transport"; NotificationCategory["VOICEMAIL"] = "voicemail"; NotificationCategory["WORKOUT"] = "workout"; NotificationCategory["UNKNOWN"] = "unknown"; })(exports.NotificationCategory || (exports.NotificationCategory = {})); /** * Android notification styles */ exports.NotificationStyle = void 0; (function (NotificationStyle) { NotificationStyle["BIG_TEXT"] = "BigTextStyle"; NotificationStyle["BIG_PICTURE"] = "BigPictureStyle"; NotificationStyle["INBOX"] = "InboxStyle"; NotificationStyle["MESSAGING"] = "MessagingStyle"; NotificationStyle["MEDIA"] = "MediaStyle"; NotificationStyle["CALL"] = "CallStyle"; NotificationStyle["DECORATED_CUSTOM"] = "DecoratedCustomViewStyle"; NotificationStyle["DECORATED_MEDIA"] = "DecoratedMediaCustomViewStyle"; NotificationStyle["DEFAULT"] = "default"; })(exports.NotificationStyle || (exports.NotificationStyle = {})); const NotificationReader = core.registerPlugin('NotificationReader', { web: () => Promise.resolve().then(function () { return web; }).then((m) => new m.NotificationReaderWeb()), }); class NotificationReaderWeb extends core.WebPlugin { async getActiveNotifications() { throw this.unimplemented('Not implemented on web.'); } async openAccessSettings() { throw this.unimplemented('Not implemented on web.'); } async isAccessEnabled() { throw this.unimplemented('Not implemented on web.'); } async getNotifications(_options) { throw this.unimplemented('Not implemented on web.'); } async deleteAllNotifications() { throw this.unimplemented('Not implemented on web.'); } async importNotifications(_options) { throw this.unimplemented('Not implemented on web.'); } async getTotalCount() { throw this.unimplemented('Not implemented on web.'); } async getInstalledApps() { throw this.unimplemented('Not implemented on web.'); } } var web = /*#__PURE__*/Object.freeze({ __proto__: null, NotificationReaderWeb: NotificationReaderWeb }); exports.NotificationReader = NotificationReader; return exports; })({}, capacitorExports); //# sourceMappingURL=plugin.js.map