Member Junction
    Preparing search index...

    Boundary the runtime calls to surface a user-facing message.

    Apps supply an implementation that bridges to their UI toaster (Angular's MJNotificationService.CreateSimpleNotification, a custom React/Vue system, server-side log sink, etc.) via ConversationsRuntime.UseNotificationAdapter.

    // Angular host bootstrap
    runtime.UseNotificationAdapter({
    Notify: (level, message, ttlMs) => {
    const style = level === 'warning' ? 'warn' : level; // map names
    MJNotificationService.Instance.CreateSimpleNotification(message, style, ttlMs ?? 5000);
    },
    });
    interface INotificationAdapter {
        Notify(level: NotificationLevel, message: string, ttlMs?: number): void;
    }

    Implemented by

    Index

    Methods

    Methods