configureTaskDescription

fun Activity.configureTaskDescription(    @StringOrStringRes title: Any,     @DrawableRes icon: Int,     @ColorInt color: Int)

Configure the activity TaskDescription, it works from Android 5 onwards and adjusts the config automatically for the different versions of Android.

Parameters

title

Title for the task description, String or string resource ID.

icon

Icon to show (resource id), it must be a PNG image, if the resource id is a SVG, it will not be applied and the app icon will be shown.

color

Color-int for the background.


fun Activity.configureTaskDescription(taskDescriptionConfig: TaskDescriptionConfig)

Configure the activity TaskDescription, it works from Android 5 onwards and adjusts the config automatically for the different versions of Android.

Parameters

taskDescriptionConfig

Object with the configuration for the activity TaskDescription.