Image Creator
open class ImageCreator : NodeCreator<BannerComponentNode, ImageVerifier>
Content copied to clipboard
Utility class that can be used to load a given BannerText into the provided TextView.
For each BannerComponents, either the text or given shield URL will be used (the shield URL taking priority).
If a shield URL is found, Picasso is used to load the image. Then, once the image is loaded, a new ImageSpan is created and set to the appropriate position of the Spannable
Functions
initialize
Link copied to clipboard
isNodeType
Link copied to clipboard
postProcess
Link copied to clipboard
open fun postProcess(textView: TextView, bannerComponentNodes: List<BannerComponentNode>)
Content copied to clipboard
open fun postProcess(textView: TextView, bannerComponentNodes: List<BannerComponentNode>)
Content copied to clipboard
prefetchImageCache
Link copied to clipboard
preProcess
Link copied to clipboard
open fun preProcess(textView: TextView, bannerComponentNodes: List<BannerComponentNode>)
Content copied to clipboard
setupNode
Link copied to clipboard
Properties
instance
Link copied to clipboard