|
| 1 | +// Metadata.xml XPath class reference: path="/api/package[@name='java.code']/class[@name='MyClass']" |
| 2 | +[global::Android.Runtime.Register ("java/code/MyClass", DoNotGenerateAcw=true)] |
| 3 | +public partial class MyClass { |
| 4 | + |
| 5 | + static readonly JniPeerMembers _members = new JniPeerMembers ("java/code/MyClass", typeof (MyClass)); |
| 6 | + internal static new IntPtr class_ref { |
| 7 | + get { |
| 8 | + return _members.JniPeerType.PeerReference.Handle; |
| 9 | + } |
| 10 | + } |
| 11 | + |
| 12 | + protected MyClass (IntPtr javaReference, JniHandleOwnership transfer) : base (javaReference, transfer) {} |
| 13 | + |
| 14 | + public unsafe uint[] UIntProp { |
| 15 | + // Metadata.xml XPath method reference: path="/api/package[@name='java.code']/class[@name='MyClass']/method[@name='get_UIntProp' and count(parameter)=0]" |
| 16 | + [Register ("get_UIntProp", "()[I", "")] |
| 17 | + get { |
| 18 | + const string __id = "get_UIntProp.()[I"; |
| 19 | + try { |
| 20 | + var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod (__id, this, null); |
| 21 | + return (uint[]) JNIEnv.GetArray (__rm.Handle, JniHandleOwnership.TransferLocalRef, typeof (uint)); |
| 22 | + } finally { |
| 23 | + } |
| 24 | + } |
| 25 | + // Metadata.xml XPath method reference: path="/api/package[@name='java.code']/class[@name='MyClass']/method[@name='set_UIntProp' and count(parameter)=1 and parameter[1][@type='uint[]']]" |
| 26 | + [Register ("set_UIntProp", "([I)V", "")] |
| 27 | + set { |
| 28 | + const string __id = "set_UIntProp.([I)V"; |
| 29 | + IntPtr native_value = JNIEnv.NewArray ((int[])(object)value); |
| 30 | + try { |
| 31 | + JniArgumentValue* __args = stackalloc JniArgumentValue [1]; |
| 32 | + __args [0] = new JniArgumentValue (native_value); |
| 33 | + _members.InstanceMethods.InvokeAbstractVoidMethod (__id, this, __args); |
| 34 | + } finally { |
| 35 | + if (value != null) { |
| 36 | + JNIEnv.CopyArray (native_value, value); |
| 37 | + JNIEnv.DeleteLocalRef (native_value); |
| 38 | + } |
| 39 | + } |
| 40 | + } |
| 41 | + } |
| 42 | + |
| 43 | + public unsafe ushort[] UShortProp { |
| 44 | + // Metadata.xml XPath method reference: path="/api/package[@name='java.code']/class[@name='MyClass']/method[@name='get_UShortProp' and count(parameter)=0]" |
| 45 | + [Register ("get_UShortProp", "()[S", "")] |
| 46 | + get { |
| 47 | + const string __id = "get_UShortProp.()[S"; |
| 48 | + try { |
| 49 | + var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod (__id, this, null); |
| 50 | + return (ushort[]) JNIEnv.GetArray (__rm.Handle, JniHandleOwnership.TransferLocalRef, typeof (ushort)); |
| 51 | + } finally { |
| 52 | + } |
| 53 | + } |
| 54 | + // Metadata.xml XPath method reference: path="/api/package[@name='java.code']/class[@name='MyClass']/method[@name='set_UShortProp' and count(parameter)=1 and parameter[1][@type='ushort[]']]" |
| 55 | + [Register ("set_UShortProp", "([S)V", "")] |
| 56 | + set { |
| 57 | + const string __id = "set_UShortProp.([S)V"; |
| 58 | + IntPtr native_value = JNIEnv.NewArray ((short[])(object)value); |
| 59 | + try { |
| 60 | + JniArgumentValue* __args = stackalloc JniArgumentValue [1]; |
| 61 | + __args [0] = new JniArgumentValue (native_value); |
| 62 | + _members.InstanceMethods.InvokeAbstractVoidMethod (__id, this, __args); |
| 63 | + } finally { |
| 64 | + if (value != null) { |
| 65 | + JNIEnv.CopyArray (native_value, value); |
| 66 | + JNIEnv.DeleteLocalRef (native_value); |
| 67 | + } |
| 68 | + } |
| 69 | + } |
| 70 | + } |
| 71 | + |
| 72 | + public unsafe ulong[] ULongProp { |
| 73 | + // Metadata.xml XPath method reference: path="/api/package[@name='java.code']/class[@name='MyClass']/method[@name='get_ULongProp' and count(parameter)=0]" |
| 74 | + [Register ("get_ULongProp", "()[J", "")] |
| 75 | + get { |
| 76 | + const string __id = "get_ULongProp.()[J"; |
| 77 | + try { |
| 78 | + var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod (__id, this, null); |
| 79 | + return (ulong[]) JNIEnv.GetArray (__rm.Handle, JniHandleOwnership.TransferLocalRef, typeof (ulong)); |
| 80 | + } finally { |
| 81 | + } |
| 82 | + } |
| 83 | + // Metadata.xml XPath method reference: path="/api/package[@name='java.code']/class[@name='MyClass']/method[@name='set_ULongProp' and count(parameter)=1 and parameter[1][@type='ulong[]']]" |
| 84 | + [Register ("set_ULongProp", "([J)V", "")] |
| 85 | + set { |
| 86 | + const string __id = "set_ULongProp.([J)V"; |
| 87 | + IntPtr native_value = JNIEnv.NewArray ((long[])(object)value); |
| 88 | + try { |
| 89 | + JniArgumentValue* __args = stackalloc JniArgumentValue [1]; |
| 90 | + __args [0] = new JniArgumentValue (native_value); |
| 91 | + _members.InstanceMethods.InvokeAbstractVoidMethod (__id, this, __args); |
| 92 | + } finally { |
| 93 | + if (value != null) { |
| 94 | + JNIEnv.CopyArray (native_value, value); |
| 95 | + JNIEnv.DeleteLocalRef (native_value); |
| 96 | + } |
| 97 | + } |
| 98 | + } |
| 99 | + } |
| 100 | + |
| 101 | + public unsafe byte[] UByteProp { |
| 102 | + // Metadata.xml XPath method reference: path="/api/package[@name='java.code']/class[@name='MyClass']/method[@name='get_UByteProp' and count(parameter)=0]" |
| 103 | + [Register ("get_UByteProp", "()[B", "")] |
| 104 | + get { |
| 105 | + const string __id = "get_UByteProp.()[B"; |
| 106 | + try { |
| 107 | + var __rm = _members.InstanceMethods.InvokeAbstractObjectMethod (__id, this, null); |
| 108 | + return (byte[]) JNIEnv.GetArray (__rm.Handle, JniHandleOwnership.TransferLocalRef, typeof (byte)); |
| 109 | + } finally { |
| 110 | + } |
| 111 | + } |
| 112 | + // Metadata.xml XPath method reference: path="/api/package[@name='java.code']/class[@name='MyClass']/method[@name='set_UByteProp' and count(parameter)=1 and parameter[1][@type='ubyte[]']]" |
| 113 | + [Register ("set_UByteProp", "([B)V", "")] |
| 114 | + set { |
| 115 | + const string __id = "set_UByteProp.([B)V"; |
| 116 | + IntPtr native_value = JNIEnv.NewArray (value); |
| 117 | + try { |
| 118 | + JniArgumentValue* __args = stackalloc JniArgumentValue [1]; |
| 119 | + __args [0] = new JniArgumentValue (native_value); |
| 120 | + _members.InstanceMethods.InvokeAbstractVoidMethod (__id, this, __args); |
| 121 | + } finally { |
| 122 | + if (value != null) { |
| 123 | + JNIEnv.CopyArray (native_value, value); |
| 124 | + JNIEnv.DeleteLocalRef (native_value); |
| 125 | + } |
| 126 | + } |
| 127 | + } |
| 128 | + } |
| 129 | + |
| 130 | +} |
0 commit comments