語言

RemoteViews.SetAppWidgetEventTag(Int32, Int32) 方法

定義

設定一個視圖標籤,將視圖與 ID 關聯,用於元件互動使用事件(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

參數

viewId
Int32

將被設定標籤的視圖 ID

tag
Int32

事件用的整數標籤

屬性

備註

設定一個視圖標籤,將視圖與 ID 關聯,用於元件互動使用事件(AppWidgetEvent)。 當此 RemoteViews 套用到綁定的小工具時,任何點擊或捲動都會透過此標籤回報給 AppWidgetManager。

Android 參考資料。android.widget.RemoteViews.setAppWidgetEventTag

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於