configure Task Description
fun Activity.configureTaskDescription( @StringOrStringRes title: Any, @DrawableRes icon: Int, @ColorInt color: Int)
Content copied to clipboard
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)
Content copied to clipboard
Configure the activity TaskDescription, it works from Android 5 onwards and adjusts the config automatically for the different versions of Android.
Parameters
task Description Config
Object with the configuration for the activity TaskDescription.