Share via


RemoteViews.SetIcon Method

Definition

Overloads

SetIcon(Int32, String, Icon)

Call a method taking one Icon on a view in the layout for this RemoteViews.

SetIcon(Int32, String, Icon, Icon)

Call a method taking one Icon on a view in the layout for this RemoteViews.

SetIcon(Int32, String, Icon)

Call a method taking one Icon on a view in the layout for this RemoteViews.

[Android.Runtime.Register("setIcon", "(ILjava/lang/String;Landroid/graphics/drawable/Icon;)V", "GetSetIcon_ILjava_lang_String_Landroid_graphics_drawable_Icon_Handler", ApiSince=23)]
public virtual void SetIcon (int viewId, string? methodName, Android.Graphics.Drawables.Icon? value);
[<Android.Runtime.Register("setIcon", "(ILjava/lang/String;Landroid/graphics/drawable/Icon;)V", "GetSetIcon_ILjava_lang_String_Landroid_graphics_drawable_Icon_Handler", ApiSince=23)>]
abstract member SetIcon : int * string * Android.Graphics.Drawables.Icon -> unit
override this.SetIcon : int * string * Android.Graphics.Drawables.Icon -> unit

Parameters

viewId
Int32

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

methodName
String

The name of the method to call.

value
Icon

The android.graphics.drawable.Icon to pass the method.

Attributes

Remarks

Java documentation for android.widget.RemoteViews.setIcon(int, java.lang.String, android.graphics.drawable.Icon).

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

SetIcon(Int32, String, Icon, Icon)

Call a method taking one Icon on a view in the layout for this RemoteViews.

[Android.Runtime.Register("setIcon", "(ILjava/lang/String;Landroid/graphics/drawable/Icon;Landroid/graphics/drawable/Icon;)V", "GetSetIcon_ILjava_lang_String_Landroid_graphics_drawable_Icon_Landroid_graphics_drawable_Icon_Handler", ApiSince=31)]
public virtual void SetIcon (int viewId, string methodName, Android.Graphics.Drawables.Icon? notNight, Android.Graphics.Drawables.Icon? night);
[<Android.Runtime.Register("setIcon", "(ILjava/lang/String;Landroid/graphics/drawable/Icon;Landroid/graphics/drawable/Icon;)V", "GetSetIcon_ILjava_lang_String_Landroid_graphics_drawable_Icon_Landroid_graphics_drawable_Icon_Handler", ApiSince=31)>]
abstract member SetIcon : int * string * Android.Graphics.Drawables.Icon * Android.Graphics.Drawables.Icon -> unit
override this.SetIcon : int * string * Android.Graphics.Drawables.Icon * Android.Graphics.Drawables.Icon -> 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
Icon

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

night
Icon

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.setIcon(int, java.lang.String, android.graphics.drawable.Icon, android.graphics.drawable.Icon).

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