invoke

abstract operator fun invoke(): View?(source)

Called to initiate the edit. This allows an optional View to be used within the editing control as a replacement for the existing item being edited. A good example is returning a TextField when editing some text. The text field would be inserted into the editing control in place of the text while editing happens.

Some editing does not happen in place, using a separate mechanism entirely (like a pop-up). These are scenarios when null might be returned to indicate the editing item should remain in place.

Return

an optional view to replace the item being edited