create

@NotNull
open fun create(): T

Creates a new instance of the AppBarView.

This method calls the AppBarView class's (Context, AttributeSet) constructor with the context and null as arguments. It uses Java reflection: Kotlin reflection (KClass.constructors) needs kotlin-reflect at runtime, which apps may leave out.

Return

A new instance of the AppBarView.