ActivityManager.TaskDescription.Builder.SetStatusBarColor(Color) Method

Definition

Set the status bar color to use in the TaskDescription.

[Android.Runtime.Register("setStatusBarColor", "(I)Landroid/app/ActivityManager$TaskDescription$Builder;", "", ApiSince=33)]
public Android.App.ActivityManager.TaskDescription.Builder SetStatusBarColor(Android.Graphics.Color color);
[<Android.Runtime.Register("setStatusBarColor", "(I)Landroid/app/ActivityManager$TaskDescription$Builder;", "", ApiSince=33)>]
member this.SetStatusBarColor : Android.Graphics.Color -> Android.App.ActivityManager.TaskDescription.Builder

Parameters

color
Color

int: A color to override the theme's status bar color.

Returns

The same instance of the builder. This value cannot be null.

Attributes

Remarks

Set the status bar color to use in the TaskDescription.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2026-08-03 UTC.

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

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