java.lang.Object | |
↳ | com.salesforce.android.knowledge.core.KnowledgeConfiguration |
Configuration class used in the creation of a KnowledgeClient
instance via KnowledgeCore
.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
class | KnowledgeConfiguration.Builder | Builder for KnowledgeConfiguration instances. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static KnowledgeConfiguration.Builder |
builder(String communityUrl)
Instantiate a builder that can be used to customize
KnowledgeConfiguration instances. | ||||||||||
static KnowledgeConfiguration |
create(String communityUrl)
Create a new KnowledgeConfiguration instance by providing your Community URL.
| ||||||||||
AuthTokenProvider |
getAuthTokenProvider()
Returns the AuthTokenProvider to be used for offline caching and authenticated http requests.
| ||||||||||
AuthenticatedUser |
getAuthenticatedUser()
Returns the AuthenticatedUser which provides a unique key identifying the logged in user.
| ||||||||||
String |
getCommunityUrl()
The Community URL indicates which community will be accessed by the
KnowledgeClient
instance. | ||||||||||
String |
getFallbackLocale()
The Locale string to use if the initial locale is not available from the online knowledge base.
| ||||||||||
String |
getInitialLocale()
The locale string to use when fetching content from the online knowledge base.
| ||||||||||
OfflineResourceConfig |
getOfflineResourceConfig()
The
OfflineResourceConfig configures how the KnowledgeClient will treat article
resources (e.g. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Instantiate a builder that can be used to customize KnowledgeConfiguration
instances.
communityUrl | The communityUrl for the community that will be accessed by the
KnowledgeClient . Example: https://my.community.force.com.
See the developer docs
for more information on where to find this value. |
---|
KnowledgeConfiguration.Builder
instance that can additionally modify the configuration.
Create a new KnowledgeConfiguration instance by providing your Community URL. This is a
convenience method for build()
.
communityUrl | The communityUrl for the community that will be accessed by the
KnowledgeClient . Example: https://my.community.force.com.
See the developer docs
for more information on where to find this value. |
---|
configure(KnowledgeConfiguration)
.
Returns the AuthTokenProvider to be used for offline caching and authenticated http requests.
Returns the AuthenticatedUser which provides a unique key identifying the logged in user.
The Community URL indicates which community will be accessed by the KnowledgeClient
instance.
The Locale string to use if the initial locale is not available from the online knowledge base.
The locale string to use when fetching content from the online knowledge base.
The OfflineResourceConfig
configures how the KnowledgeClient
will treat article
resources (e.g. images embedded in the article content) for offline caching purposes. By default
this caching is disabled, but it may be enabled by calling offlineResourceConfig(OfflineResourceConfig)
.