from

open fun <T : ExpandableBehavior?> from(@NonNull view: View, @NonNull klass: Class<T>): T

A utility function to get the ExpandableBehavior attached to the view.

Return

The ExpandableBehavior attached to the view.

Parameters

view

The View that the ExpandableBehavior is attached to.

klass

The expected Class of the attached ExpandableBehavior.