UIGestureRecognizer.RemoveTarget 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.
Overloads
| Name | Description |
|---|---|
| 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) |
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
A Token returned by the AddTarget method.
Applies to
RemoveTarget(NSObject, Selector)
[Foundation.Export("removeTarget:action:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public virtual void RemoveTarget(Foundation.NSObject? target, ObjCRuntime.Selector? action);
[<Foundation.Export("removeTarget:action:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
abstract member RemoveTarget : Foundation.NSObject * ObjCRuntime.Selector -> unit
override this.RemoveTarget : Foundation.NSObject * ObjCRuntime.Selector -> unit
Parameters
- target
- NSObject
- action
- Selector
- Attributes