foo-webview-sdk
    Preparing search index...

    Interface EventEmitToParams

    Parameters for event.emitTo. Send an event to one window. It receives an event named event whose data is { payload, sourceWindowId }. A window id no open window has fails with NOT_FOUND.

    interface EventEmitToParams {
        event: string;
        payload?: JsonValue;
        targetWindowId: string;
    }
    Index
    event: string

    Event name the receiver subscribes to.

    payload?: JsonValue

    Data delivered as payload; absent or null sends an empty object.

    targetWindowId: string

    Id of the window to send to, such as main or the windowId a port reported.