ActivityManager.TaskDescription Constructors

Definition

Overloads

Name Description
ActivityManager.TaskDescription()

This constructor is deprecated.

ActivityManager.TaskDescription(ActivityManager+TaskDescription)

Creates a copy of another TaskDescription.

ActivityManager.TaskDescription(String)

This constructor is deprecated.

ActivityManager.TaskDescription(IntPtr, JniHandleOwnership)

Initializes a managed representation of an existing Java Native Interface object.

ActivityManager.TaskDescription(String, Bitmap)

This constructor is deprecated.

ActivityManager.TaskDescription(String, Int32)

This constructor is deprecated.

ActivityManager.TaskDescription(String, Bitmap, Color)

This constructor is deprecated.

ActivityManager.TaskDescription(String, Int32, Color)

This constructor is deprecated.

ActivityManager.TaskDescription()

This constructor is deprecated.

[Android.Runtime.Register(".ctor", "()V", "")]
public TaskDescription();
Attributes

Remarks

This constructor is deprecated. Use Builder instead.

Creates an empty TaskDescription.

Android reference for android.app.ActivityManager.TaskDescription.TaskDescription.

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.

Applies to

ActivityManager.TaskDescription(ActivityManager+TaskDescription)

Creates a copy of another TaskDescription.

[Android.Runtime.Register(".ctor", "(Landroid/app/ActivityManager$TaskDescription;)V", "")]
public TaskDescription(Android.App.ActivityManager.TaskDescription td);
[<Android.Runtime.Register(".ctor", "(Landroid/app/ActivityManager$TaskDescription;)V", "")>]
new Android.App.ActivityManager.TaskDescription : Android.App.ActivityManager.TaskDescription -> Android.App.ActivityManager.TaskDescription

Parameters

td
ActivityManager.TaskDescription

ActivityManager.TaskDescription

Attributes

Remarks

Creates a copy of another TaskDescription.

Android reference for android.app.ActivityManager.TaskDescription.TaskDescription.

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.

Applies to

ActivityManager.TaskDescription(String)

This constructor is deprecated.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")]
public TaskDescription(string label);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;)V", "")>]
new Android.App.ActivityManager.TaskDescription : string -> Android.App.ActivityManager.TaskDescription

Parameters

label
String

String: A label and description of the current state of this activity.

Attributes

Remarks

This constructor is deprecated. Use Builder instead.

Creates the TaskDescription to the specified values.

Android reference for android.app.ActivityManager.TaskDescription.TaskDescription.

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.

Applies to

ActivityManager.TaskDescription(IntPtr, JniHandleOwnership)

Initializes a managed representation of an existing Java Native Interface object.

protected TaskDescription(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.ActivityManager.TaskDescription : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.ActivityManager.TaskDescription

Parameters

javaReference
IntPtr

nativeint

The Java Native Interface object reference.

transfer
JniHandleOwnership

The ownership transfer to apply to the Java Native Interface object reference.

Remarks

This constructor is called by the .NET for Android binding runtime when it creates a managed peer for an existing Java object.

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.

Applies to

ActivityManager.TaskDescription(String, Bitmap)

This constructor is deprecated.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/graphics/Bitmap;)V", "")]
public TaskDescription(string label, Android.Graphics.Bitmap icon);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/graphics/Bitmap;)V", "")>]
new Android.App.ActivityManager.TaskDescription : string * Android.Graphics.Bitmap -> Android.App.ActivityManager.TaskDescription

Parameters

label
String

String: A label and description of the current state of this activity.

icon
Bitmap

Bitmap: An icon that represents the current state of this activity.

Attributes

Remarks

This constructor is deprecated. Use Builder instead.

Creates the TaskDescription to the specified values.

Android reference for android.app.ActivityManager.TaskDescription.TaskDescription.

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.

Applies to

ActivityManager.TaskDescription(String, Int32)

This constructor is deprecated.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "", ApiSince=28)]
public TaskDescription(string label, int iconRes);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;I)V", "", ApiSince=28)>]
new Android.App.ActivityManager.TaskDescription : string * int -> Android.App.ActivityManager.TaskDescription

Parameters

label
String

String: A label and description of the current state of this activity.

iconRes
Int32

int: A drawable resource of an icon that represents the current state of this activity.

Attributes

Remarks

This constructor is deprecated. Use Builder instead.

Creates the TaskDescription to the specified values.

Android reference for android.app.ActivityManager.TaskDescription.TaskDescription.

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.

Applies to

ActivityManager.TaskDescription(String, Bitmap, Color)

This constructor is deprecated.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/graphics/Bitmap;I)V", "")]
public TaskDescription(string label, Android.Graphics.Bitmap icon, Android.Graphics.Color colorPrimary);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/graphics/Bitmap;I)V", "")>]
new Android.App.ActivityManager.TaskDescription : string * Android.Graphics.Bitmap * Android.Graphics.Color -> Android.App.ActivityManager.TaskDescription

Parameters

label
String

String: A label and description of the current state of this task.

icon
Bitmap

Bitmap: An icon that represents the current state of this task.

colorPrimary
Color

int: A color to override the theme's primary color. This color must be opaque.

Attributes

Remarks

This constructor is deprecated. Use Builder instead.

Creates the TaskDescription to the specified values.

Android reference for android.app.ActivityManager.TaskDescription.TaskDescription.

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.

Applies to

ActivityManager.TaskDescription(String, Int32, Color)

This constructor is deprecated.

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;II)V", "", ApiSince=28)]
public TaskDescription(string label, int iconRes, Android.Graphics.Color colorPrimary);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;II)V", "", ApiSince=28)>]
new Android.App.ActivityManager.TaskDescription : string * int * Android.Graphics.Color -> Android.App.ActivityManager.TaskDescription

Parameters

label
String

String: A label and description of the current state of this task.

iconRes
Int32

int: A drawable resource of an icon that represents the current state of this activity.

colorPrimary
Color

int: A color to override the theme's primary color. This color must be opaque.

Attributes

Remarks

This constructor is deprecated. Use Builder instead.

Creates the TaskDescription to the specified values.

Android reference for android.app.ActivityManager.TaskDescription.TaskDescription.

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.

Applies to