UIApplication.SendAction(Selector, NSObject, NSObject, UIEvent) Method

Definition

Send an action message to the specified target.

[Foundation.Export("sendAction:to:from:forEvent:")]
public virtual bool SendAction (ObjCRuntime.Selector action, Foundation.NSObject target, Foundation.NSObject sender, UIKit.UIEvent forEvent);
abstract member SendAction : ObjCRuntime.Selector * Foundation.NSObject * Foundation.NSObject * UIKit.UIEvent -> bool
override this.SendAction : ObjCRuntime.Selector * Foundation.NSObject * Foundation.NSObject * UIKit.UIEvent -> bool

Parameters

action
Selector

Selector that identifies an action method.

target
NSObject

The object receiving the action message.

This parameter can be null.

sender
NSObject

To be added.

This parameter can be null.

forEvent
UIEvent

To be added.

This parameter can be null.

Returns

true if the responder handled the message.

Attributes

Remarks

This method allows application developers to trigger native action methods.

Applies to

See also

  • <xref:UIKit.UIApplication.SendEvent>