Class DefaultSdkOptions

  • All Implemented Interfaces:
    SdkOptions


    public class DefaultSdkOptions
    extends java.lang.Object
    implements SdkOptions
    This class is the default implementation of SdkOptions

    The methods in this class represent the default behaviour of the SDK.

    • Constructor Detail

      • DefaultSdkOptions

        public DefaultSdkOptions()
    • Method Detail

      • overrideResourceLoadingInWebview

        public boolean overrideResourceLoadingInWebview()
        Description copied from interface: SdkOptions
        Determines whether overriding resource loading is allowed in webviews.

        ViewArticleActivity contains a webview. This usually works fine but sometimes a Help Center is available only to logged in users. In this case we need to override the resource loading if we want to see the inline resources such as images. We do this by adding an authorisation header but this changes the behaviour of the webview from loading the text first and images after to loading the images first and text after.

        If you have a restricted Help Center you almost definitely want to return true from this.

        Specified by:
        overrideResourceLoadingInWebview in interface SdkOptions
        Returns:
        true if overriding resource loading is allowed. False otherwise.