Documentation
    Preparing search index...

    Interface MockNotifyState

    In-memory state of the notify mock.

    service.mock.state().badges.get('w1'); // 3
    
    interface MockNotifyState {
        badges: Map<string, number>;
        channels: Map<string, Map<string, NotificationChannel>>;
        controlsSent: Set<string>;
        counter: number;
        notifications: Map<string, MockNotification>;
    }
    Index

    Properties

    badges: Map<string, number>

    Badge count per window.

    channels: Map<string, Map<string, NotificationChannel>>

    Registered channels per window, keyed by channel id.

    controlsSent: Set<string>

    Windows that already received notify.controls.

    counter: number

    Monotonic id counter.

    notifications: Map<string, MockNotification>

    Active notifications by id.