Activity.SetTaskDescription(ActivityManager+TaskDescription) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Sets information describing the task with this activity for presentation inside the Recents System UI.
[Android.Runtime.Register("setTaskDescription", "(Landroid/app/ActivityManager$TaskDescription;)V", "GetSetTaskDescription_Landroid_app_ActivityManager_TaskDescription_Handler")]
public virtual void SetTaskDescription(Android.App.ActivityManager.TaskDescription? taskDescription);
[<Android.Runtime.Register("setTaskDescription", "(Landroid/app/ActivityManager$TaskDescription;)V", "GetSetTaskDescription_Landroid_app_ActivityManager_TaskDescription_Handler")>]
abstract member SetTaskDescription : Android.App.ActivityManager.TaskDescription -> unit
override this.SetTaskDescription : Android.App.ActivityManager.TaskDescription -> unit
Parameters
- taskDescription
- ActivityManager.TaskDescription
ActivityManager.TaskDescription: The TaskDescription properties that describe the task with this activity
- Attributes
Remarks
Sets information describing the task with this activity for presentation inside the Recents System UI. When ActivityManager.getRecentTasks is called, the activities of each task are traversed in order from the topmost activity to the bottommost. The traversal continues for each property until a suitable value is found. For each task the taskDescription will be returned in ActivityManager.TaskDescription.
See also:
Android reference for android.app.Activity.setTaskDescription.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.