android-components / mozilla.components.browser.awesomebar.layout / DefaultSuggestionLayout / getLayoutResource

getLayoutResource

fun getLayoutResource(suggestion: Suggestion): Int (source)

Overrides SuggestionLayout.getLayoutResource

Returns a layout resource ID to be used for this suggestion. The BrowserAwesomeBar implementation will take care of inflating the layout or re-using instances as needed.