public unsafe 鷭(global::Android.Bluetooth.BluetoothGattCharacteristic p0, global::Com.Qcl.VH.MD.Qcl.QclGenericGattClient.鷭.鷭 p1) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (Handle != IntPtr.Zero) { return; } try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(p1); if (GetType() != typeof(鷭)) { SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(GetType(), "(Landroid/bluetooth/BluetoothGattCharacteristic;Lcom/qcl/vh/md/qcl/QclGenericGattClient$鷭$鷭;)V", __args), JniHandleOwnership.TransferLocalRef); global::Android.Runtime.JNIEnv.FinishCreateInstance(Handle, "(Landroid/bluetooth/BluetoothGattCharacteristic;Lcom/qcl/vh/md/qcl/QclGenericGattClient$鷭$鷭;)V", __args); return; } if (id_ctor_Landroid_bluetooth_BluetoothGattCharacteristic_Lcom_qcl_vh_md_qcl_QclGenericGattClient_鷭_鷭_ == IntPtr.Zero) { id_ctor_Landroid_bluetooth_BluetoothGattCharacteristic_Lcom_qcl_vh_md_qcl_QclGenericGattClient_鷭_鷭_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/bluetooth/BluetoothGattCharacteristic;Lcom/qcl/vh/md/qcl/QclGenericGattClient$鷭$鷭;)V"); } SetHandle( global::Android.Runtime.JNIEnv.StartCreateInstance(class_ref, id_ctor_Landroid_bluetooth_BluetoothGattCharacteristic_Lcom_qcl_vh_md_qcl_QclGenericGattClient_鷭_鷭_, __args), JniHandleOwnership.TransferLocalRef); JNIEnv.FinishCreateInstance(Handle, class_ref, id_ctor_Landroid_bluetooth_BluetoothGattCharacteristic_Lcom_qcl_vh_md_qcl_QclGenericGattClient_鷭_鷭_, __args); } finally { } }
public static unsafe bool IsCharacteristicWritable(global::Android.Bluetooth.BluetoothGattCharacteristic characteristic) { const string __id = "isCharacteristicWritable.(Landroid/bluetooth/BluetoothGattCharacteristic;)Z"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((characteristic == null) ? IntPtr.Zero : ((global::Java.Lang.Object)characteristic).Handle); var __rm = _members.StaticMethods.InvokeBooleanMethod(__id, __args); return(__rm); } finally { } }
public unsafe BleGattCharacter(global::Android.Bluetooth.BluetoothGattCharacteristic characteristic) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "(Landroid/bluetooth/BluetoothGattCharacteristic;)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((characteristic == null) ? IntPtr.Zero : ((global::Java.Lang.Object)characteristic).Handle); var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args); SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef); _members.InstanceMethods.FinishCreateInstance(__id, this, __args); } finally { } }
public unsafe void OnComplete(global::Android.Bluetooth.BluetoothGattCharacteristic p0, int p1, byte[] p2) { if (id_onComplete_Landroid_bluetooth_BluetoothGattCharacteristic_IarrayB == IntPtr.Zero) { id_onComplete_Landroid_bluetooth_BluetoothGattCharacteristic_IarrayB = JNIEnv.GetMethodID(class_ref, "onComplete", "(Landroid/bluetooth/BluetoothGattCharacteristic;I[B)V"); } IntPtr native_p2 = JNIEnv.NewArray(p2); JValue *__args = stackalloc JValue [3]; __args [0] = new JValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle); __args [1] = new JValue(p1); __args [2] = new JValue(native_p2); JNIEnv.CallVoidMethod(((global::Java.Lang.Object) this).Handle, id_onComplete_Landroid_bluetooth_BluetoothGattCharacteristic_IarrayB, __args); if (p2 != null) { JNIEnv.CopyArray(native_p2, p2); JNIEnv.DeleteLocalRef(native_p2); } }