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

    Interface IReaderViewVisibleContentChangeEngineEventExperimental

    Used for the EngineEvent type "visibleContentChange".

    The event fires once each time IReaderView.getVisibleContent starts returning a new snapshot. The new snapshot's ongoingChanges equal the previous snapshot's, plus started, minus ended. A change is never in both lists. In every event, started or ended is non-empty, or rectsChanged is true.

    The event is dispatched asynchronously. When several snapshots are created before it reaches a listener, IReaderView.getVisibleContent can already return a newer snapshot than visibleContent. The newer snapshot's own event follows.

    The order of the changes in started and ended is not specified.

    This API is experimental and might be subject to changes in future releases.

    interface IReaderViewVisibleContentChangeEngineEvent {
        cancelable: boolean;
        defaultPrevented: boolean;
        ended: readonly VisibleContentChangeType[];
        immediatePropagationStopped: boolean;
        isTrusted: boolean;
        propagationStopped: boolean;
        readerView: IReaderView;
        rectsChanged: boolean;
        started: readonly VisibleContentChangeType[];
        type: keyof IEngineEventTypeMap;
        visibleContent: IReaderViewVisibleContent;
        preventDefault(): void;
        stopImmediatePropagation(): void;
        stopPropagation(): void;
        toJSON(): IReaderViewEngineEventData;
    }

    Hierarchy (View Summary)

    Properties

    cancelable: boolean

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

    defaultPrevented: boolean

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

    ended: readonly VisibleContentChangeType[]

    The changes that were ongoing in the previous snapshot and are not ongoing in visibleContent.

    immediatePropagationStopped: boolean

    True if stopImmediatePropagation() was called on this event.

    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.

    rectsChanged: boolean

    true when visibleContent holds newly fetched rects.

    false when only visibleContent.ongoingChanges changed. visibleContent then has the same rects as the previous snapshot.

    started: readonly VisibleContentChangeType[]

    The changes that are ongoing in visibleContent and were not ongoing in the previous snapshot.

    The type of event.

    The new snapshot.

    Methods

    • Experimental

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

      Returns void

    • Experimental

      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