HeaderViewModel

fun HeaderViewModel(    imageDescriptor: ImageDescriptor? = null,     title: StringResolver? = null,     description: StringResolver? = null)

A convenience constructor for creating a HeaderViewModel with non-live data.

Parameters

imageDescriptor

The information to display in the image field. When set to null, the image field will not be visible.

title

A StringResolver for the header title in the header section. When set to null, the header title text field will not be visible.

description

A StringResolver for the header description in the title section. When set to null, the header description text field will not be visible.


fun HeaderViewModel(    imageDescriptor: LiveData<ImageDescriptor?> = EmptyLiveData(),     title: LiveData<StringResolver?> = EmptyLiveData(),     description: LiveData<StringResolver?> = EmptyLiveData())

Parameters

imageDescriptor

The information to display in the image field. When set to null, the image field will not be visible.

title

A StringResolver for the header title in the header section. When set to null, the header title text field will not be visible.

description

A StringResolver for the header description in the header section. When set to null, the header description text field will not be visible.