1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-21 09:38:01 +02:00
joplin/packages/app-mobile/services/AlarmServiceDriver.web.ts

34 lines
665 B
TypeScript
Raw Normal View History

import Logger from '@joplin/utils/Logger';
export default class AlarmServiceDriver {
public constructor(logger: Logger) {
logger.warn('WARNING: AlarmServiceDriver is not implemented on web');
}
public hasPersistentNotifications() {
return false;
}
public notificationIsSet() {
throw new Error('Available only for non-persistent alarms');
}
public setInAppNotificationHandler(_v: unknown) {
}
public async hasPermissions(_perm: unknown = null) {
return false;
}
public async requestPermissions() {
return false;
}
public async clearNotification(_id: number) {
}
public async scheduleNotification(_notification: Notification) {
}
}