Skip to main content

AndroidCallUtility Class

This is the wrapper class that lets us call into static Android methods. More...

Static Public Member Functions

static void CallStatic (string className, string methodName, params object[] args)
 This version of the CallStatic() method lets the user call into a native Java method with provided arguments and expects no return value from the native Java method More...
 
static T CallStatic< T > (string className, string methodName, params object[] args)
 This version of the CallStatic() method lets the user call into a native Java method with provided arguments and expects a user-specified return value from the native Java method More...
 

Detailed Description

This is the wrapper class that lets us call into static Android methods.

Member Function Documentation

◆ CallStatic()

static void BFGSDK.AndroidCallUtility.CallStatic (string className,
string methodName,
params object[] args 
)
inlinestatic
This version of the CallStatic() method lets the user call into a native Java method with provided arguments and expects no return value from the native Java method
Parameters
classNameThe name of the native Java class containing the method to be called.
methodNameThe name of the native Java method to be called.
argsThe parameters to be passed to the native Java method.

◆ CallStatic< T >()

static T BFGSDK.AndroidCallUtility.CallStatic< T > (string className,
string methodName,
params object[] args 
)
inlinestatic
This version of the CallStatic() method lets the user call into a native Java method with provided arguments and expects a user-specified return value from the native Java method
Parameters
classNameThe name of the native Java class containing the method to be called.
methodNameThe name of the native Java method to be called.
argsThe parameters to be passed to the native Java method.
Returns
The user-specified type return value from the native Java call.