matrix-react-sdk
Version:
SDK for matrix.org using React
60 lines (59 loc) • 2.07 kB
TypeScript
export declare const Notifier: {
notifsByRoom: {};
pendingEncryptedEventIds: any[];
notificationMessageForEvent: (ev: any) => any;
_displayPopupNotification: (ev: any, room: any) => void;
getSoundForRoom: (roomId: string) => {
url: string;
name: any;
type: any;
size: any;
};
_playAudioNotification: (ev: any, room: any) => Promise<void>;
start: () => void;
stop: () => void;
supportsDesktopNotifications: () => boolean;
setEnabled: (enable: boolean, callback?: () => void) => void;
isEnabled: () => any;
isPossible: () => boolean;
isBodyEnabled: () => any;
isAudioEnabled: () => any;
setPromptHidden: (hidden: boolean, persistent?: boolean) => void;
shouldShowPrompt: () => boolean;
_isPromptHidden: () => any;
onSyncStateChange: (state: string) => void;
onEvent: (ev: any) => void;
onEventDecrypted: (ev: any) => void;
onRoomReceipt: (ev: any, room: any) => void;
_evaluateEvent: (ev: any) => void;
};
declare const _default: {
notifsByRoom: {};
pendingEncryptedEventIds: any[];
notificationMessageForEvent: (ev: any) => any;
_displayPopupNotification: (ev: any, room: any) => void;
getSoundForRoom: (roomId: string) => {
url: string;
name: any;
type: any;
size: any;
};
_playAudioNotification: (ev: any, room: any) => Promise<void>;
start: () => void;
stop: () => void;
supportsDesktopNotifications: () => boolean;
setEnabled: (enable: boolean, callback?: () => void) => void;
isEnabled: () => any;
isPossible: () => boolean;
isBodyEnabled: () => any;
isAudioEnabled: () => any;
setPromptHidden: (hidden: boolean, persistent?: boolean) => void;
shouldShowPrompt: () => boolean;
_isPromptHidden: () => any;
onSyncStateChange: (state: string) => void;
onEvent: (ev: any) => void;
onEventDecrypted: (ev: any) => void;
onRoomReceipt: (ev: any, room: any) => void;
_evaluateEvent: (ev: any) => void;
};
export default _default;