Edit

Share via


UIGestureRecognizer.RemoveTarget Method

Definition

Overloads

RemoveTarget(UIGestureRecognizer+Token)

Removes the callback method for the specified gesture being recognized, based on the token that was returned by AddTarget.

RemoveTarget(NSObject, Selector)

Low-level counterpart to the low-level AddTarget method.

RemoveTarget(UIGestureRecognizer+Token)

Removes the callback method for the specified gesture being recognized, based on the token that was returned by AddTarget.

public void RemoveTarget (UIKit.UIGestureRecognizer.Token token);
member this.RemoveTarget : UIKit.UIGestureRecognizer.Token -> unit

Parameters

token
UIGestureRecognizer.Token

A Token returned by the AddTarget method.

Applies to

RemoveTarget(NSObject, Selector)

Low-level counterpart to the low-level AddTarget method.

[Foundation.Export("removeTarget:action:")]
public virtual void RemoveTarget (Foundation.NSObject target, ObjCRuntime.Selector action);
abstract member RemoveTarget : Foundation.NSObject * ObjCRuntime.Selector -> unit
override this.RemoveTarget : Foundation.NSObject * ObjCRuntime.Selector -> unit

Parameters

target
NSObject

The NSObject instance where the method will be invoked.

This parameter can be null.

action
Selector

The name of the selector in the target object that was registered with AddTarget.

This parameter can be null.

Attributes

Applies to