arch-android

//Android/br.com.arch.toolkit.android.delegate/optionalViewProvider

optionalViewProvider

[android]
fun <T : ERROR CLASS: Symbol not found for View??> optionalViewProvider(@IdResidRes: Int, @IdResparentRes: Int = NO_ID, viewStubAutoInflate: Boolean = false): ViewProviderDelegate<T?>

Creates a ViewProviderDelegate that returns null if the view is not found.

Parameters

android

Β  Β 
idRes The ID of the view.
parentRes Optional ID of a parent view.
viewStubAutoInflate Whether to auto-inflate if it’s a ViewStub.