@eclipse-scout/core
Version:
Eclipse Scout runtime
28 lines • 1.35 kB
TypeScript
import { NativeNotificationVisibility, NotificationModel, StatusOrModel } from '../../index';
export interface DesktopNotificationModel extends NotificationModel {
/**
* The duration in milliseconds until the notification is automatically removed.
* Use {@link DesktopNotification.INFINITE} to disable automatic removal.
*
* Default is 5000ms.
*/
duration?: number;
/**
* If true, only the native notification from the Browser will be shown.
* The desktop notification will be kept open invisibly until the native notification is closed.
* If you use an infinite duration (see {@link duration}, consider to close the desktop notification automatically when you don't need it anymore
* to help the user keep its notification center clean, and to clean up the references on the desktop.
* This may be necessary in case the user does not close it manually or the notification won't be shown at all due to missing permissions.
*/
nativeOnly?: boolean;
/**
* The title displayed on the native notification.
*/
nativeNotificationTitle?: string;
/**
* Holds native message & native icon.
*/
nativeNotificationStatus?: StatusOrModel;
nativeNotificationVisibility?: NativeNotificationVisibility;
}
//# sourceMappingURL=DesktopNotificationModel.d.ts.map