1
0
mirror of https://github.com/laurent22/joplin.git synced 2024-12-27 10:32:58 +02:00
joplin/packages/app-mobile/services/AlarmServiceDriver.web.ts
2024-08-02 14:51:49 +01:00

34 lines
665 B
TypeScript

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) {
}
}