public static class

ArticleDetailRequest.Builder

extends KnowledgeRequest.KnowledgeRequestBuilder<T extends KnowledgeRequestBuilder<T>>
java.lang.Object
   ↳ com.salesforce.android.service.common.fetchsave.requests.FetchSaveRequest.FetchSaveRequestBuilder<T extends com.salesforce.android.service.common.fetchsave.requests.FetchSaveRequest.FetchSaveRequestBuilder<T>>
     ↳ com.salesforce.android.knowledge.core.requests.KnowledgeRequest.KnowledgeRequestBuilder<T extends com.salesforce.android.knowledge.core.requests.KnowledgeRequest.KnowledgeRequestBuilder<T>>
       ↳ com.salesforce.android.knowledge.core.requests.ArticleDetailRequest.Builder

Class Overview

Builder class for an ArticleDetailRequest.

Summary

Public Methods
ArticleDetailRequest build()
Builds the ArticleDetailRequest without submitting to to a KnowledgeClient.
ArticleDetailRequest.Builder cacheImages(boolean cacheImages)
Sets whether any image tags in the article's fields should be parsed, downloaded, and cached for later offline use.
Async<ArticleDetails> submit(KnowledgeClient client)
Builds an ArticleDetailRequest and submits it directly to the given KnowledgeClient.
[Expand]
Inherited Methods
From class com.salesforce.android.service.common.fetchsave.requests.FetchSaveRequest.FetchSaveRequestBuilder
From class java.lang.Object

Public Methods

public ArticleDetailRequest build ()

Builds the ArticleDetailRequest without submitting to to a KnowledgeClient.

Returns

public ArticleDetailRequest.Builder cacheImages (boolean cacheImages)

Sets whether any image tags in the article's fields should be parsed, downloaded, and cached for later offline use. In order of this caching to occur you must have configured offline resource caching using offlineResourceConfig(OfflineResourceConfig) when configuring the KnowledgeClient. If offline resource caching is not enabled for the client then this flag will be ignored. Default is true.

Parameters
cacheImages True if images should be cached to disk for this article, false otherwise.
Returns
  • This instance for fluent API calls.

public Async<ArticleDetails> submit (KnowledgeClient client)

Builds an ArticleDetailRequest and submits it directly to the given KnowledgeClient. This is a convenience method for client.submit(builder.build());

Parameters
client The KnowledgeClient to which to submit the request.
Returns
  • The Async return value representing the result of the request.