Share via


RenderNode.SetForceDarkAllowed(Boolean) Method

Definition

Sets whether or not to allow force dark to apply to this RenderNode.

[Android.Runtime.Register("setForceDarkAllowed", "(Z)Z", "", ApiSince=29)]
public bool SetForceDarkAllowed (bool allow);
[<Android.Runtime.Register("setForceDarkAllowed", "(Z)Z", "", ApiSince=29)>]
member this.SetForceDarkAllowed : bool -> bool

Parameters

allow
Boolean

Whether or not to allow force dark.

Returns

True if the value changed, false if the new value was the same as the previous value.

Attributes

Remarks

Sets whether or not to allow force dark to apply to this RenderNode.

Setting this to false will disable the auto-dark feature on everything this RenderNode draws, including any descendants.

Setting this to true will allow this RenderNode to be automatically made dark, however a value of 'true' will not override any 'false' value in its parent chain nor will it prevent any 'false' in any of its children.

Java documentation for android.graphics.RenderNode.setForceDarkAllowed(boolean).

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