searchAsJson

fun searchAsJson(    searchTerm: String,     listener: ArcXPContentCallback? = null,     from: Int = 0,     size: Int = DEFAULT_PAGINATION_SIZE): LiveData<Either<ArcXPException, String>>

This function requests a search to be performed by search Term (keyword/tag based on resolver setup default is tag(used in example app)) note: cache is not used for search, but if you open item it will be cached

returns result 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 '..AsJson' calls, so can subscribe directly to jsonLiveData once

Parameters

searchTerm

string to search (searches TAG by default)

listener

Callback interface for optional callback override ArcXPContentCallback.onSearchSuccess for success override ArcXPContentCallback.onError for failure or leave listener null and use livedata result and error livedata

from

index in which to start (ie for pagination, you may want to start at index for next page)

size

number of entries to request: (valid range VALID_COLLECTION_SIZE_RANGE, will coerce parameter into this range if it is outside)


fun searchAsJson(    searchTerms: List<String>,     listener: ArcXPContentCallback? = null,     from: Int = 0,     size: Int = DEFAULT_PAGINATION_SIZE): LiveData<Either<ArcXPException, String>>

This function requests a search to be performed by search Term (keyword/tag based on resolver setup default is tag(used in example app)) note: cache is not used for search, but if you open item it will be cached

returns result 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 '..AsJson' calls, so can subscribe directly to jsonLiveData once

Parameters

searchTerms

list of strings to search (searches TAG by default)

listener

Callback interface for optional callback override ArcXPContentCallback.onSearchSuccess for success override ArcXPContentCallback.onError for failure or leave listener null and use livedata result and error livedata

from

index in which to start (ie for pagination, you may want to start at index for next page)

size

number of entries to request: (valid range VALID_COLLECTION_SIZE_RANGE, will coerce parameter into this range if it is outside)