mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-24 10:27:10 +02:00
34 lines
665 B
TypeScript
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) {
|
|
|
|
}
|
|
}
|