onCreate
open fun onCreate(name: ConfigurationPropertyName, target: Bindable<out Any>, context: BindContext, result: Any): Any
Called when binding of an element ends with an unbound result and a newly created instance is about to be returned. Implementations may change the ultimately returned result or perform addition validation.
Return
the actual result that should be used (must not be null
)
Since
2.2.2
Parameters
name
the name of the element being bound
target
the item being bound
context
the bind context
result
the newly created instance (never null
)