get Gallery
fun getGallery( id: String, listener: ArcXPContentCallback? = null, shouldIgnoreCache: Boolean = false): LiveData<Either<ArcXPException, ArcXPContentElement>>
Content copied to clipboard
This function requests a gallery result by ANS ID
returns result with ans type = "gallery" either through callback interface or livedata
Return
LiveData subscribe to this livedata for successful results (or use callback interface) Note: this returns the same live data as all other generic content calls, so can subscribe directly to contentLiveData once
Parameters
id
ANS ID
listener
Callback interface for optional callback override ArcXPContentCallback.onGetContentSuccess for success override ArcXPContentCallback.onError for failure or leave listener null and use livedata result stream and error livedata stream
should Ignore Cache
if true, we ignore caching for this call only