共用方式為


ShareActionProvider.SetOnShareTargetSelectedListener 方法

定義

設定接聽程式,以在選取共用目標時收到通知。

[Android.Runtime.Register("setOnShareTargetSelectedListener", "(Landroid/widget/ShareActionProvider$OnShareTargetSelectedListener;)V", "GetSetOnShareTargetSelectedListener_Landroid_widget_ShareActionProvider_OnShareTargetSelectedListener_Handler")]
public virtual void SetOnShareTargetSelectedListener (Android.Widget.ShareActionProvider.IOnShareTargetSelectedListener? listener);
[<Android.Runtime.Register("setOnShareTargetSelectedListener", "(Landroid/widget/ShareActionProvider$OnShareTargetSelectedListener;)V", "GetSetOnShareTargetSelectedListener_Landroid_widget_ShareActionProvider_OnShareTargetSelectedListener_Handler")>]
abstract member SetOnShareTargetSelectedListener : Android.Widget.ShareActionProvider.IOnShareTargetSelectedListener -> unit
override this.SetOnShareTargetSelectedListener : Android.Widget.ShareActionProvider.IOnShareTargetSelectedListener -> unit

參數

屬性

備註

android.widget.ShareActionProvider.setOnShareTargetSelectedListener(android.widget.OnShareTargetSelectedListener)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於