Options
All
  • Public
  • Public/Protected
  • All
Menu

Class NotificationManager

Hierarchy

  • MessageClient
    • NotificationManager

Index

Constructors

constructor

Properties

Protected Readonly contentRenderer

Protected Readonly contextKeyService

contextKeyService: ContextKeyService

Protected Readonly deferredResults

deferredResults: Map<string, Deferred<undefined | string>> = ...

Protected Readonly fireUpdatedEvent

fireUpdatedEvent: DebouncedFunc<() => void> = ...

Protected hideTimeouts

hideTimeouts: Map<string, number> = ...

Protected notificationCenterVisibleKey

notificationCenterVisibleKey: ContextKey<boolean>

Protected notificationToastsVisibleKey

notificationToastsVisibleKey: ContextKey<boolean>

Protected Readonly notifications

notifications: Map<string, Notification> = ...

Readonly onUpdated

onUpdated: Event<NotificationUpdateEvent> = ...

Protected Readonly onUpdatedEmitter

onUpdatedEmitter: Emitter<NotificationUpdateEvent> = ...

Protected Readonly openerService

openerService: OpenerService

Protected Readonly preferences

preferences: PreferenceProxy<NotificationConfiguration>

Protected Readonly toasts

toasts: Map<string, Notification> = ...

Protected visibilityState

visibilityState: Visibility = 'hidden'

Accessors

centerVisible

  • get centerVisible(): boolean

toastsVisible

  • get toastsVisible(): boolean

Methods

accept

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

clear

clearAll

  • clearAll(): void

Protected find

Protected getId

Protected getMessageId

  • getMessageId(m: Message): string

Protected getTimeout

  • getTimeout(plainMessage: Message): number

hide

  • hide(): void

hideCenter

  • hideCenter(): void

Protected hideToast

  • hideToast(messageId: string): void

Protected init

  • init(): Promise<void>

Protected isExpandable

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

openLink

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

reportProgress

  • reportProgress(messageId: string, update: ProgressUpdate, originalMessage: ProgressMessage, cancellationToken: CancellationToken): Promise<void>

Protected setVisibilityState

showCenter

  • showCenter(): void

showMessage

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

showProgress

  • showProgress(messageId: string, plainMessage: ProgressMessage, cancellationToken: CancellationToken): Promise<undefined | string>

Protected startHideTimeout

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

Protected toNotificationType

  • toNotificationType(type?: Error | Warning | Info | Log | Progress): Type

Protected toPlainProgress

  • toPlainProgress(update: ProgressUpdate): undefined | number

toggleCenter

  • toggleCenter(): void

toggleExpansion

  • toggleExpansion(notificationId: string): void

Protected updateContextKeys

  • updateContextKeys(): void