Arc XPContent Manager
This class is responsible for dispensing content.
Content source may be from api or db depending on repository
This class has a restricted constructor, so use the instance provided by com.arcxp.ArcXPMobileSDK method com.arcxp.ArcXPMobileSDK.contentManager after initializing com.arcxp.ArcXPMobileSDK.
Each request method can either use ArcXPContentCallback parameter for result stream or use the return value LiveData and subscribe to result stream.
Functions
clearCache removes all entries from database
getArcXPStory This function requests a story / article result by ANS ID
getArcXPStorySuspend This function requests a story / article result by ANS ID
This function requests a collection result by content alias
This function requests a collection result by content alias as a json string
getCollectionAsJsonSuspend - request collection by content alias Note this should be a troubleshooting function, does not use cache
getCollectionSuspend this suspend function requests a collection result by content alias
getContentAsJson This function requests a result by ANS ID as a json string
getContentAsJsonSuspend - request content element as JSON by ANS id Note this should be a troubleshooting function, does not use cache
getContentSuspend This suspend function requests an ans result by id
This function requests a gallery result by ANS ID
This function requests list of section headers that are used for navigation It is expected these correlate with existing collections
This function requests list of section headers as a json string that are used for navigation It is expected these correlate with existing collections
getSectionListAsJsonSuspend - request section lists / navigation
getSectionListSuspend This suspend function requests list of section headers that are used for navigation It is expected these results correlate with existing collections for subsequent requests
This function requests a video result by ANS ID
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
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
searchAsJsonSuspendThis 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
searchAsJsonSuspend 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
searchSuspend 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
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
searchVideosSuspend requests a search to be performed by search Term (keyword/tag based on resolver setup default is tag(used in example app))
searchVideosSuspend 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
Properties
collectionLiveData subscribe to this for ordered list of collection with their server index (WebSked order) in list as key (getCollection returns this additionally)
contentLiveData subscribe to this for generic content element results for search / section lists (getVideo, getGallery return this additionally)
jsonLiveData subscribe to this for all raw json results as string ( -AsJson methods return this additionally)
searchLiveData subscribe to this for ordered list of collection with their server index (search result order) in list as key (search, searchVideo returns this additionally)
sectionListLiveData subscribe to this for navigation list from server in list as key (getSectionList returns this additionally)
storyLiveData subscribe to this for story element results (getStory returns this additionally)