UnityEngine.AndroidJNISafe.CallStaticVoidMethod C# (CSharp) Method

CallStaticVoidMethod() public static method

public static CallStaticVoidMethod ( IntPtr clazz, IntPtr methodID, jvalue args ) : void
clazz System.IntPtr
methodID System.IntPtr
args jvalue
return void
        public static void CallStaticVoidMethod(IntPtr clazz, IntPtr methodID, jvalue[] args)
        {
            try
            {
                AndroidJNI.CallStaticVoidMethod(clazz, methodID, args);
            }
            finally
            {
                CheckException();
            }
        }

Usage Example

コード例 #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);
 }
All Usage Examples Of UnityEngine.AndroidJNISafe::CallStaticVoidMethod
AndroidJNISafe