Foundation.NSObject.PerformSelector Method
Invokes the selector on the current instance and if the obj is not null, it passes this as its single parameter.

Syntax

[Foundation.Export("performSelector:withObject:afterDelay:")]
public virtual void PerformSelector (ObjCRuntime.Selector selector, NSObject withObject, double delay)

Parameters

selector
Documentation for this section has not yet been entered.
withObject
Documentation for this section has not yet been entered.
delay
The delay in seconds before the method is invoked.

Remarks

c# Example

public override bool FinishedLaunching (UIApplication app, NSDictionary options)
{
	window = new UIWindow (UIScreen.MainScreen.Bounds);
	window.MakeKeyAndVisible ();
	// Invoke our method in 10 seconds
	PerformSelector (new ObjCRuntime.Selector ("demo:"), new NSString ("hello world"), 10);
	return true;
}
// This registers the method "RunDemo" as responding to the selector "demo:"
[Export ("demo:")]
void RunDemo (NSString arg)
{
	Console.WriteLine ("This is the parameter I got {0}", arg);
}

Requirements

Namespace: Foundation
Assembly: Xamarin.iOS (in Xamarin.iOS.dll)
Assembly Versions: 0.0.0.0