Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NotificationManager

Hierarchy

Index

Properties

Protected Readonly contentRenderer

Protected Readonly contextKeyService

contextKeyService: ContextKeyService

Protected Readonly deferredResults

deferredResults: Map<string, Deferred<undefined | string>> = new Map<string, Deferred<string | undefined>>()

Protected Readonly fireUpdatedEvent

fireUpdatedEvent: DebouncedFunc<(Anonymous function)> = throttle(() => {const notifications = deepClone(Array.from(this.notifications.values()).filter((notification: Notification) =>notification.message));const toasts = deepClone(Array.from(this.toasts.values()).filter((toast: Notification) =>toast.message));const visibilityState = this.visibilityState;this.onUpdatedEmitter.fire({ notifications, toasts, visibilityState });}, 250, { leading: true, trailing: true })

Protected hideTimeouts

hideTimeouts: Map<string, number> = new Map<string, number>()

Protected notificationCenterVisibleKey

notificationCenterVisibleKey: ContextKey<boolean>

Protected notificationToastsVisibleKey

notificationToastsVisibleKey: ContextKey<boolean>

Protected Readonly notifications

notifications: Map<string, Notification> = new Map<string, Notification>()

Readonly onUpdated

onUpdated: Event<NotificationUpdateEvent> = this.onUpdatedEmitter.event

Protected Readonly onUpdatedEmitter

onUpdatedEmitter: Emitter<NotificationUpdateEvent> = new Emitter<NotificationUpdateEvent>()

Protected Readonly openerService

openerService: OpenerService

Protected Readonly preferences

Protected Readonly toasts

toasts: Map<string, Notification> = new Map<string, Notification>()

Protected visibilityState

visibilityState: Visibility = "hidden"

Accessors

centerVisible

  • get centerVisible(): boolean

toastsVisible

  • get toastsVisible(): boolean

Methods

accept

  • accept(notification: Notification | string, action: string | undefined): void

clear

clearAll

  • clearAll(): void

Protected find

Protected getId

Protected getMessageId

  • getMessageId(m: PlainMessage): string

Protected getTimeout

  • getTimeout(plainMessage: PlainMessage): number

hide

  • hide(): void

hideCenter

  • hideCenter(): void

Protected hideToast

  • hideToast(messageId: string): void

Protected init

  • init(): Promise<void>

Protected isExpandable

  • isExpandable(message: string, source: string | undefined, actions: string[]): boolean

openLink

  • openLink(link: string): Promise<void>

reportProgress

Protected setVisibilityState

showMessage

  • showMessage(plainMessage: PlainMessage): Promise<string | undefined>

showProgress

Protected startHideTimeout

  • startHideTimeout(messageId: string, timeout: number): void

Protected toNotificationType

Protected toPlainProgress

toggleCenter

  • toggleCenter(): void

toggleExpansion

  • toggleExpansion(notificationId: string): void

Protected updateContextKeys

  • updateContextKeys(): void