service / com.scurab.android.uitor.extract2 / DetailExtractor

DetailExtractor

object DetailExtractor

Functions

excludeViewGroup

Flag particular class which is android.view.ViewGroup to behave as like simple android.view.View Currently useful only for android.webkit.WebView

fun excludeViewGroup(className: String): Boolean

findExtractor

Find generic extractor for particular class

fun findExtractor(clazz: Class<*>): BaseExtractor?

findViewByPosition

Find view by Position item from json

fun findViewByPosition(rootView: View, position: Int): View?

getExtractor

Get extractor for view

fun getExtractor(item: View): BaseExtractor

Find generic extractor for particular class

fun getExtractor(clazz: Class<*>): BaseExtractor

getRenderArea

Get render size for view if exists

fun getRenderArea(item: View): RenderAreaWrapper<View>?

isExcludedViewGroup

.excludeViewGroup

fun isExcludedViewGroup(className: String): Boolean

parse

Traverse whole view tree hierarchy and extract data

fun parse(rootView: View, lazy: Boolean): ViewNode

registerExtractor

Register extractor for particular class. Older is overwritten if exists

fun registerExtractor(clz: Class<*>, extractor: BaseExtractor): BaseExtractor?
fun registerExtractor(className: String, extractor: BaseExtractor): BaseExtractor?

registerRenderArea

Register wrapper for particular class. Older is overwritten if exists

fun <T : View> registerRenderArea(clz: Class<out T>, wrapper: RenderAreaWrapper<T>): RenderAreaWrapper<*>?
fun <T : View> registerRenderArea(className: String, wrapper: RenderAreaWrapper<T>): RenderAreaWrapper<*>?

removeExcludeViewGroup

.excludeViewGroup

fun removeExcludeViewGroup(className: String): Boolean

resetToDefault

Reinitialize extractor set to default state

fun resetToDefault(): Unit

unregisterExtractor

Unregister extractor

fun unregisterExtractor(className: String): BaseExtractor?
fun unregisterExtractor(clz: Class<*>): BaseExtractor?

unregisterRenderArea

Unregister extractor

fun unregisterRenderArea(clz: Class<*>): RenderAreaWrapper<*>?
fun unregisterRenderArea(className: String): RenderAreaWrapper<*>?