Package com.zendesk.sdk.network.impl
Class DefaultSdkOptions
- java.lang.Object
-
- com.zendesk.sdk.network.impl.DefaultSdkOptions
-
- All Implemented Interfaces:
- SdkOptions
public class DefaultSdkOptions extends java.lang.Object implements SdkOptions
This class is the default implementation of SdkOptionsThe methods in this class represent the default behaviour of the SDK.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.zendesk.sdk.network.SdkOptions
SdkOptions.ServiceOptions
-
-
Constructor Summary
Constructors Constructor and Description DefaultSdkOptions()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description SdkOptions.ServiceOptions
getServiceOptions()
Gets the parameters used for overriding behaviour in service classes.boolean
overrideResourceLoadingInWebview()
Determines whether overriding resource loading is allowed in webviews.
-
-
-
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 interfaceSdkOptions
- Returns:
- true if overriding resource loading is allowed. False otherwise.
-
getServiceOptions
public SdkOptions.ServiceOptions getServiceOptions()
Description copied from interface:SdkOptions
Gets the parameters used for overriding behaviour in service classes.The
default implementation
will specify the correct parameters to use so overriding this is rarely required.- Specified by:
getServiceOptions
in interfaceSdkOptions
- Returns:
- The parameters that service classes will use
-
-