iOSApp.Invoke 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
Invoke(String, Object) |
Invokes a method on the app's app delegate. For Xamarin apps, methods must be exposed using attributes as shown below. iOS example in app delegate:
|
Invoke(String, Object[]) |
Invokes a method on the app's app delegate. For Xamarin apps, methods must be exposed using attributes as shown below. iOS example in app delegate:
|
Invoke(String, Object)
Invokes a method on the app's app delegate. For Xamarin apps, methods must be exposed using attributes as shown below.
iOS example in app delegate:
[Export("myInvokeMethod:")]
public NSString MyInvokeMethod(NSString arg)
{
return new NSString("uitest");
}
public object Invoke (string methodName, object argument = null);
abstract member Invoke : string * obj -> obj
override this.Invoke : string * obj -> obj
Public Function Invoke (methodName As String, Optional argument As Object = null) As Object
Parameters
- methodName
- String
The name of the method to invoke.
- argument
- Object
The argument to pass to the method.
Returns
The result of the invocation.
Implements
Applies to
Invoke(String, Object[])
Invokes a method on the app's app delegate. For Xamarin apps, methods must be exposed using attributes as shown below.
iOS example in app delegate:
[Export("myInvokeMethod:")]
public NSString MyInvokeMethod(NSString arg, NSString arg2)
{
return new NSString("uitest");
}
public object Invoke (string methodName, object[] arguments);
abstract member Invoke : string * obj[] -> obj
override this.Invoke : string * obj[] -> obj
Public Function Invoke (methodName As String, arguments As Object()) As Object
Parameters
- methodName
- String
The name of the method to invoke.
- arguments
- Object[]
An array of arguments to pass to the method.
Returns
The result of the invocation.