Udostępnij za pośrednictwem


WindowManagerLayoutParams.ColorMode Property

Definition

Returns the color mode of the window, one of ActivityInfo#COLOR_MODE_DEFAULT, ActivityInfo#COLOR_MODE_WIDE_COLOR_GAMUT or ActivityInfo#COLOR_MODE_HDR. -or- Set the color mode of the window.

public virtual Android.Content.PM.ActivityColorMode ColorMode { [Android.Runtime.Register("getColorMode", "()I", "GetGetColorModeHandler", ApiSince=26)] get; [Android.Runtime.Register("setColorMode", "(I)V", "GetSetColorMode_IHandler", ApiSince=26)] set; }
[<get: Android.Runtime.Register("getColorMode", "()I", "GetGetColorModeHandler", ApiSince=26)>]
[<set: Android.Runtime.Register("setColorMode", "(I)V", "GetSetColorMode_IHandler", ApiSince=26)>]
member this.ColorMode : Android.Content.PM.ActivityColorMode with get, set

Property Value

Attributes

Remarks

Property getter documentation:

Returns the color mode of the window, one of ActivityInfo#COLOR_MODE_DEFAULT, ActivityInfo#COLOR_MODE_WIDE_COLOR_GAMUT or ActivityInfo#COLOR_MODE_HDR.

Java documentation for android.view.WindowManager.LayoutParams.getColorMode().

Property setter documentation:

Set the color mode of the window. Setting the color mode might override the window's pixel WindowManager.LayoutParams#format format.

The color mode must be one of ActivityInfo#COLOR_MODE_DEFAULT, ActivityInfo#COLOR_MODE_WIDE_COLOR_GAMUT or ActivityInfo#COLOR_MODE_HDR.

Java documentation for android.view.WindowManager.LayoutParams.setColorMode(int).

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