Exemple #1
0
 public AndroidRuntimeOptions(IntPtr jnienv, IntPtr vm, bool allocNewObjectSupported, IntPtr classLoader, IntPtr classLoader_loadClass)
 {
     EnvironmentPointer       = jnienv;
     ClassLoader              = new JniObjectReference(classLoader, JniObjectReferenceType.Global);
     ClassLoader_LoadClass_id = classLoader_loadClass;
     InvocationPointer        = vm;
     NewObjectRequired        = !allocNewObjectSupported;
     ObjectReferenceManager   = new AndroidObjectReferenceManager();
     TypeManager              = new AndroidTypeManager();
     ValueManager             = new AndroidValueManager();
 }
 public AndroidRuntimeOptions(IntPtr jnienv,
                              IntPtr vm,
                              bool allocNewObjectSupported,
                              IntPtr classLoader,
                              IntPtr classLoader_loadClass,
                              bool jniAddNativeMethodRegistrationAttributePresent)
 {
     EnvironmentPointer       = jnienv;
     ClassLoader              = new JniObjectReference(classLoader, JniObjectReferenceType.Global);
     ClassLoader_LoadClass_id = classLoader_loadClass;
     InvocationPointer        = vm;
     NewObjectRequired        = !allocNewObjectSupported;
     ObjectReferenceManager   = new AndroidObjectReferenceManager();
     TypeManager              = new AndroidTypeManager(jniAddNativeMethodRegistrationAttributePresent);
     ValueManager             = new AndroidValueManager();
     UseMarshalMemberBuilder  = false;
     JniAddNativeMethodRegistrationAttributePresent = jniAddNativeMethodRegistrationAttributePresent;
 }