Colibrio Reader Framework API - Cloud license
    Preparing search index...

    Interface ISelectionChangedEngineEvent

    Event fired when native selection is performed within content documents.

    interface ISelectionChangedEngineEvent {
        cancelable: boolean;
        contentLocation: IContentLocation;
        defaultPrevented: boolean;
        immediatePropagationStopped: boolean;
        isRange: boolean;
        isTrusted: boolean;
        propagationStopped: boolean;
        readerView: IReaderView;
        selectionText: string;
        type: keyof IEngineEventTypeMap;
        preventDefault(): void;
        stopImmediatePropagation(): void;
        stopPropagation(): void;
        toJSON(): ISelectionChangedEngineEventData;
    }

    Hierarchy (View Summary)

    Properties

    cancelable: boolean

    If this event's default action is cancelable. See respective engine event for its definition of default action.

    contentLocation: IContentLocation

    A ContentLocation describing the selection A value of null means that nothing is currently selected.

    defaultPrevented: boolean

    If this event's default action has been canceled/prevented by a call to preventDefault()

    immediatePropagationStopped: boolean

    True if stopImmediatePropagation() was called on this event.

    isRange: boolean

    If the selection is a range or a position.

    isTrusted: boolean

    If this event runs in a "trusted" context, i.e. the event callback is executed during a user-generated event such as "click" or "pointerdown".

    propagationStopped: boolean

    True if stopPropagation() was called on this event.

    readerView: IReaderView

    The ReaderView instance this event is related to.

    selectionText: string

    The text contents of the selection range.

    The type of event.

    Methods

    • Prevent the event's default action. See the respective engine event for its definition of default action.

      Returns void

    • Stops this event from propagating to listeners on the ReadingSystemEngine instance, if called from a listener added to a ReaderView instance. If the event has already propagated to the ReadingSystemEngine instance, calling this method has no effect.

      Returns void