MapperTypeWrapper - DataDog/dd-sdk-android GitHub Wiki
data class MapperTypeWrapper<T : View>(type: Class<T>, mapper: WireframeMapper<T>)
A wrapper holding a a WireframeMapper and the type it's associated with.
| T | the type of View the mapper can handle |
| type | the Class representing the view type |
| mapper | the WireframeMapper |
constructor(type: Class<T>, mapper: WireframeMapper<T>)
| T | the type of View the mapper can handle |
| type | the Class representing the view type |
| mapper | the WireframeMapper |
fun getUnsafeMapper(): WireframeMapper<View>
Returns the mapper unsafely casted to WireframeMapper.
fun supportsView(view: View): Boolean
Checks whether the underlying mapper would support mapping the given view.
true if the mapper can take the view as an input
| view | the view to map |