getView

abstract fun getView(context: Context, showLogo: Boolean = true, onHasContent: (Boolean) -> Unit? = null): View

This method returns a View that will be used as the NewTabPage content

Return

View

Parameters

context

The context to create the view with

showLogo

Whether to show the logo in the new tab page

onHasContent

Optional callback to notify when the view has content. View assumes it has content while loading data.