java.lang.Object | |
↳ | com.salesforce.android.knowledge.ui.ArticleWebViewConfiguration.Builder |
A Builder for constructing ArticleWebViewConfiguration
objects.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Builder(KnowledgeClient client)
Creates a new Builder with the minimum required settings for displaying the ArticleDetails.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
ArticleWebViewConfiguration |
build()
Constructs a new
ArticleWebViewConfiguration
| ||||||||||
ArticleWebViewConfiguration.Builder |
setClient(KnowledgeClient client)
Set the
KnowledgeClient used in the ArticleWebView . | ||||||||||
ArticleWebViewConfiguration.Builder |
setCssProvider(KnowledgeCssProvider cssProvider)
Set the
KnowledgeCssProvider used to inject CSS to the webview. | ||||||||||
ArticleWebViewConfiguration.Builder |
setJsProvider(KnowledgeJsProvider jsProvider)
Set the
KnowledgeJsProvider used to inject JS to the webview. | ||||||||||
ArticleWebViewConfiguration.Builder |
setWebResourceErrorListener(ArticleWebView.WebResourceErrorListener webResourceErrorListener)
Set the
ArticleWebView.WebResourceErrorListener used to report errors encounter whilst the Webview is loading resources. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Creates a new Builder with the minimum required settings for displaying the ArticleDetails.
client | The KnowledgeClient providing Offline resource access. |
---|
Set the KnowledgeClient
used in the ArticleWebView
.
Set the KnowledgeCssProvider
used to inject CSS to the webview.
Set the KnowledgeJsProvider
used to inject JS to the webview.
Set the ArticleWebView.WebResourceErrorListener
used to report errors encounter whilst the Webview is loading resources.