CallStaticVoidMethod() public static method

public static CallStaticVoidMethod ( IntPtr clazz, IntPtr methodID, jvalue args ) : void
clazz System.IntPtr
methodID System.IntPtr
args jvalue
return void
Esempio n. 1
0
 public static void SetNativeExceptionOnProxy(IntPtr proxy, Exception e, bool methodNotFound)
 {
     jvalue[] array = new jvalue[3];
     array[0].l = proxy;
     array[1].j = GCHandle.ToIntPtr(GCHandle.Alloc(e)).ToInt64();
     array[2].z = methodNotFound;
     AndroidJNISafe.CallStaticVoidMethod(AndroidReflection.s_ReflectionHelperClass, AndroidReflection.s_ReflectionHelperSetNativeExceptionOnProxy, array);
 }
Esempio n. 2
0
        protected void _CallStatic(string methodName, params object[] args)
        {
            if (args == null)
            {
                args = new object[1];
            }
            IntPtr methodID = AndroidJNIHelper.GetMethodID(this.m_jclass, methodName, args, true);

            jvalue[] jvalueArray = AndroidJNIHelper.CreateJNIArgArray(args);
            try
            {
                AndroidJNISafe.CallStaticVoidMethod(this.m_jclass, methodID, jvalueArray);
            }
            finally
            {
                AndroidJNIHelper.DeleteJNIArgArray(args, jvalueArray);
            }
        }