Condividi tramite


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

Definizione

Inviare un messaggio di azione all'oggetto specificato 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

Parametri

action
Selector

Selettore che identifica un metodo di azione.

target
NSObject

Oggetto che riceve il messaggio di azione.

Questo parametro può essere null.

sender
NSObject

Da aggiungere.

Questo parametro può essere null.

forEvent
UIEvent

Da aggiungere.

Questo parametro può essere null.

Restituisce

true se il risponditore ha gestito il messaggio.

Attributi

Commenti

Questo metodo consente agli sviluppatori di applicazioni di attivare metodi di azione nativi.

Si applica a

Vedi anche

  • <xref:UIKit.UIApplication.SendEvent>