Package 

Class EpubNavigatorFragment.Configuration

    • Method Detail

      • getServedAssets

         final List<String> getServedAssets()

        Patterns for asset paths which will be available to EPUB resources under https://readium/assets/.

        The patterns can use simple glob wildcards, see: https://developer.android.com/reference/android/os/PatternMatcher#PATTERN_SIMPLE_GLOB

        Use .* to serve all app assets.

      • setServedAssets

         final Unit setServedAssets(List<String> servedAssets)

        Patterns for asset paths which will be available to EPUB resources under https://readium/assets/.

        The patterns can use simple glob wildcards, see: https://developer.android.com/reference/android/os/PatternMatcher#PATTERN_SIMPLE_GLOB

        Use .* to serve all app assets.

      • getReadiumCssRsProperties

         final RsProperties getReadiumCssRsProperties()

        Readium CSS reading system settings.

        See https://readium.org/readium-css/docs/CSS19-api.html#reading-system-styles

      • setReadiumCssRsProperties

         final Unit setReadiumCssRsProperties(RsProperties readiumCssRsProperties)

        Readium CSS reading system settings.

        See https://readium.org/readium-css/docs/CSS19-api.html#reading-system-styles

      • getUseReadiumCssFontSize

         final Boolean getUseReadiumCssFontSize()

        When disabled, the Android web view's WebSettings.textZoom will be used to adjust the font size, instead of using the Readium CSS's --USER__fontSize variable.

        WebSettings.textZoom will work with more publications than --USER__fontSize, even the ones poorly authored. However, the page width is not adjusted when changing the font size to keep the optimal line length.

        See:

        • https://github.com/readium/mobile/issues/5

        • https://github.com/readium/mobile/issues/1#issuecomment-652431984

      • setUseReadiumCssFontSize

         final Unit setUseReadiumCssFontSize(Boolean useReadiumCssFontSize)

        When disabled, the Android web view's WebSettings.textZoom will be used to adjust the font size, instead of using the Readium CSS's --USER__fontSize variable.

        WebSettings.textZoom will work with more publications than --USER__fontSize, even the ones poorly authored. However, the page width is not adjusted when changing the font size to keep the optimal line length.

        See:

        • https://github.com/readium/mobile/issues/5

        • https://github.com/readium/mobile/issues/1#issuecomment-652431984

      • getDisableSelectionWhenProtected

         final Boolean getDisableSelectionWhenProtected()

        Disable user selection if the publication is protected by a DRM (e.g. with LCP).

        WARNING: If you choose to disable this, you MUST remove the Copy and Share selection menu items in your app. Otherwise, you will void the EDRLab certification for your application. If you need help, follow up on: https://github.com/readium/kotlin-toolkit/issues/299#issuecomment-1315643577

      • setDisableSelectionWhenProtected

         final Unit setDisableSelectionWhenProtected(Boolean disableSelectionWhenProtected)

        Disable user selection if the publication is protected by a DRM (e.g. with LCP).

        WARNING: If you choose to disable this, you MUST remove the Copy and Share selection menu items in your app. Otherwise, you will void the EDRLab certification for your application. If you need help, follow up on: https://github.com/readium/kotlin-toolkit/issues/299#issuecomment-1315643577