RemoteViews.SetAppWidgetEventTag(Int32, Int32) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set a view tag associating a View with an ID to be used for widget interaction usage events (AppWidgetEvent).
[Android.Runtime.Register("setAppWidgetEventTag", "(II)V", "GetSetAppWidgetEventTag_IIHandler", ApiSince=36)]
public virtual void SetAppWidgetEventTag(int viewId, int tag);
[<Android.Runtime.Register("setAppWidgetEventTag", "(II)V", "GetSetAppWidgetEventTag_IIHandler", ApiSince=36)>]
abstract member SetAppWidgetEventTag : int * int -> unit
override this.SetAppWidgetEventTag : int * int -> unit
Parameters
- viewId
- Int32
ID of the View whose tag will be set
- tag
- Int32
The integer tag to use for the event
- Attributes
Remarks
Set a view tag associating a View with an ID to be used for widget interaction usage events (AppWidgetEvent). When this RemoteViews is applied to a bound widget, any clicks or scrolls on the tagged view will be reported to AppWidgetManager using this tag.
Android reference for android.widget.RemoteViews.setAppWidgetEventTag.
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.