RemoteViews.SetColorInt(Int32, String, Int32, Int32) Method

Definition

Call a method taking one int, a color, on a view in the layout for this RemoteViews.

[Android.Runtime.Register("setColorInt", "(ILjava/lang/String;II)V", "GetSetColorInt_ILjava_lang_String_IIHandler", ApiSince=31)]
public virtual void SetColorInt (int viewId, string methodName, int notNight, int night);
[<Android.Runtime.Register("setColorInt", "(ILjava/lang/String;II)V", "GetSetColorInt_ILjava_lang_String_IIHandler", ApiSince=31)>]
abstract member SetColorInt : int * string * int * int -> unit
override this.SetColorInt : int * string * int * int -> unit

Parameters

viewId
Int32

The id of the view on which to call the method.

methodName
String

The name of the method to call.

notNight
Int32

The value to pass to the method when the view's configuration is set to Configuration#UI_MODE_NIGHT_NO

night
Int32

The value to pass to the method when the view's configuration is set to Configuration#UI_MODE_NIGHT_YES

Attributes

Remarks

Java documentation for android.widget.RemoteViews.setColorInt(int, java.lang.String, int, 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