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

    Interface IContentLocationContentResolver

    An API used for fetching publication content from a ContentLocation. Get an instance by calling ContentLocation.fetchContentResolver().

    interface IContentLocationContentResolver {
        getTextContent(): string;
        getTextContentAfter(textLength: number): string;
        getTextContentBefore(textLength: number): string;
    }

    Methods

    • Get the text content of the ContentLocation.

      NOTE: This method returns an empty string for PDF publications.

      Returns string

    • Get the text content immediately after the ContentLocation.

      NOTE: This method returns an empty string for PDF publications

      Parameters

      • textLength: number

        The number of characters to get.

      Returns string

    • Get the text content immediately before the ContentLocation.

      NOTE: This method returns an empty string for PDF publications

      Parameters

      • textLength: number

        The number of characters to get.

      Returns string