Sprache

ActivityManager.TaskDescription Constructors

Definition

Overloads

Name Description
ActivityManager.TaskDescription()

Creates an empty TaskDescription.

ActivityManager.TaskDescription(ActivityManager+TaskDescription)

Creates a copy of another TaskDescription.

ActivityManager.TaskDescription(String)

Creates the TaskDescription to the specified values.

ActivityManager.TaskDescription(IntPtr, JniHandleOwnership)

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

ActivityManager.TaskDescription(String, Bitmap)

Creates the TaskDescription to the specified values.

ActivityManager.TaskDescription(String, Int32)

Creates the TaskDescription to the specified values.

ActivityManager.TaskDescription(String, Bitmap, Color)

Creates the TaskDescription to the specified values.

ActivityManager.TaskDescription(String, Int32, Color)

Creates the TaskDescription to the specified values.

ActivityManager.TaskDescription()

Creates an empty TaskDescription.

[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)

Creates the TaskDescription to the specified values.

[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

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)

Creates the TaskDescription to the specified values.

[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

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

icon
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)

Creates the TaskDescription to the specified values.

[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

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

iconRes
Int32

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)

Creates the TaskDescription to the specified values.

[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

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

icon
Bitmap

An icon that represents the current state of this task.

colorPrimary
Color

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)

Creates the TaskDescription to the specified values.

[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

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

iconRes
Int32

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

colorPrimary
Color

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