java.lang.Object | |
↳ | com.salesforce.android.knowledge.core.KnowledgeCore |
Initialization API for Knowledge.
The KnowledgeCore class is a builder for a KnowledgeClient instance. A KnowledgeClient
instance lets you read Knowledge data by submitting requests and handling results.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
static void |
clearCacheForUser(Context context, AuthenticatedUser authenticatedUser)
Clears all items from the offline article cache for a specified user.
| ||||||||||
static KnowledgeCore |
configure(KnowledgeConfiguration configuration)
Configure the Knowledge Core instance with a
KnowledgeConfiguration object. | ||||||||||
Async<KnowledgeClient> |
createClient(Context context)
Create a new
KnowledgeClient instance which may be used to interact with Salesforce Knowledge. | ||||||||||
static void |
deleteCache(Context context)
Deletes the offline article cache.
| ||||||||||
static void |
deleteCacheForUser(Context context, AuthenticatedUser authenticatedUser)
Deletes the offline article cache for the specified user.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Clears all items from the offline article cache for a specified user.
context | A context instance with which to create the client. |
---|---|
authenticatedUser | An AuthenticatedUser uniquely identifying a user account which should have it's database cleared. Null for an unauthenticated user. |
Configure the Knowledge Core instance with a KnowledgeConfiguration
object.
configuration | A KnowledgeConfiguration instance. |
---|
KnowledgeCore
instance for syntax chaining.
Create a new KnowledgeClient
instance which may be used to interact with Salesforce Knowledge.
context | A Context instance with which to create the client. |
---|
Async
instance that will asynchronously provide a KnowledgeClient
result.
Deletes the offline article cache. Note, this will remove all offline data for all users.
context | A context instance with which to create the client. |
---|
Deletes the offline article cache for the specified user.
context | A context instance with which to create the client. |
---|---|
authenticatedUser | An AuthenticatedUser uniquely identifying a user account which should have it's database deleted. Null for an unauthenticated user.
|