AppWidgetHostView.SetOnLightBackground(Boolean) Method

Definition

Sets whether the widget is being displayed on a light/white background and use an alternate UI if available.

[Android.Runtime.Register("setOnLightBackground", "(Z)V", "GetSetOnLightBackground_ZHandler", ApiSince=29)]
public virtual void SetOnLightBackground (bool onLightBackground);
[<Android.Runtime.Register("setOnLightBackground", "(Z)V", "GetSetOnLightBackground_ZHandler", ApiSince=29)>]
abstract member SetOnLightBackground : bool -> unit
override this.SetOnLightBackground : bool -> unit

Parameters

onLightBackground
Boolean
Attributes

Remarks

Sets whether the widget is being displayed on a light/white background and use an alternate UI if available.

Java documentation for android.appwidget.AppWidgetHostView.setOnLightBackground(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