@duckduckgo/content-scope-scripts
    Preparing search index...

    Interface SelectionChangedParams

    A selection gesture ended on text the tools can act on, while enabled and showToolbar is on, so native can show its toolbar for it and pick the actions that fit. Sent again when the same text is reselected: native drops repeats. Not sent for selections in a modal dialog, popover or fullscreen element.

    interface SelectionChangedParams {
        devicePixelRatio: number;
        editable: boolean;
        language?: string;
        rect: SelectionRect;
        selectionType: SelectionType;
        text: string;
    }
    Index
    devicePixelRatio: number

    The page's window.devicePixelRatio, which includes page zoom.

    editable: boolean

    Whether the selection is in an editable field.

    language?: string

    The selection's language as a primary subtag, e.g. "es", from the nearest lang attribute. Absent when the page doesn't say, which native takes as the user's language.

    selectionType: SelectionType
    text: string

    The selected text, without text the user can't see.