次の方法で共有


View.SetOnLongClickListener(View+IOnLongClickListener) Method

Definition

Register a callback to be invoked when this view is clicked and held.

[Android.Runtime.Register("setOnLongClickListener", "(Landroid/view/View$OnLongClickListener;)V", "GetSetOnLongClickListener_Landroid_view_View_OnLongClickListener_Handler")]
public virtual void SetOnLongClickListener (Android.Views.View.IOnLongClickListener? l);
[<Android.Runtime.Register("setOnLongClickListener", "(Landroid/view/View$OnLongClickListener;)V", "GetSetOnLongClickListener_Landroid_view_View_OnLongClickListener_Handler")>]
abstract member SetOnLongClickListener : Android.Views.View.IOnLongClickListener -> unit
override this.SetOnLongClickListener : Android.Views.View.IOnLongClickListener -> unit

Parameters

l
View.IOnLongClickListener

The callback that will run

Attributes

Remarks

Java documentation for android.view.View.setOnLongClickListener(android.view.OnLongClickListener).

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

See also