TextCreator

open class TextCreator : NodeCreator<BannerComponentNode, TextVerifier>

This is the default text coordinator implementation to handle plain text components.

Constructors

TextCreator
Link copied to clipboard
open fun TextCreator()

Functions

isNodeType
Link copied to clipboard
open fun isNodeType(bannerComponents: BannerComponents): Boolean
postProcess
Link copied to clipboard
open fun postProcess(textView: TextView, bannerComponentNodes: List<BannerComponentNode>)
Coordinators which make edits to the text after it's been populated into the text view shouldoverride this method.
preProcess
Link copied to clipboard
open fun preProcess(textView: TextView, bannerComponentNodes: List<BannerComponentNode>)
One coordinator should override this method, and this should be the coordinator which populatesthe textView with text.
setupNode
Link copied to clipboard
abstract fun setupNode(components: BannerComponents, index: Int, startIndex: Int, modifier: String): N
open fun setupNode(components: BannerComponents, index: Int, startIndex: Int, modifier: String): BannerComponentNode