public unsafe ScanResult(global::Android.Bluetooth.BluetoothDevice device, int eventType, int primaryPhy, int secondaryPhy, int advertisingSid, int txPower, int rssi, int periodicAdvertisingInterval, global::Com.Vivalnk.Android.Support.V18.Scanner.ScanRecord scanRecord, long timestampNanos) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "(Landroid/bluetooth/BluetoothDevice;IIIIIIILcom/vivalnk/android/support/v18/scanner/ScanRecord;J)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JniArgumentValue *__args = stackalloc JniArgumentValue [10]; __args [0] = new JniArgumentValue((device == null) ? IntPtr.Zero : ((global::Java.Lang.Object)device).Handle); __args [1] = new JniArgumentValue(eventType); __args [2] = new JniArgumentValue(primaryPhy); __args [3] = new JniArgumentValue(secondaryPhy); __args [4] = new JniArgumentValue(advertisingSid); __args [5] = new JniArgumentValue(txPower); __args [6] = new JniArgumentValue(rssi); __args [7] = new JniArgumentValue(periodicAdvertisingInterval); __args [8] = new JniArgumentValue((scanRecord == null) ? IntPtr.Zero : ((global::Java.Lang.Object)scanRecord).Handle); __args [9] = new JniArgumentValue(timestampNanos); var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args); SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef); _members.InstanceMethods.FinishCreateInstance(__id, this, __args); } finally { } }
public static unsafe bool CreateBond(global::Java.Lang.Class btClass, global::Android.Bluetooth.BluetoothDevice btDevice) { const string __id = "createBond.(Ljava/lang/Class;Landroid/bluetooth/BluetoothDevice;)Z"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [2]; __args [0] = new JniArgumentValue((btClass == null) ? IntPtr.Zero : ((global::Java.Lang.Object)btClass).Handle); __args [1] = new JniArgumentValue((btDevice == null) ? IntPtr.Zero : ((global::Java.Lang.Object)btDevice).Handle); var __rm = _members.StaticMethods.InvokeBooleanMethod(__id, __args); return(__rm); } finally { } }
public static unsafe bool 鷭(global::Android.Bluetooth.BluetoothDevice p0) { if (id_鷭_Landroid_bluetooth_BluetoothDevice_ == IntPtr.Zero) { id_鷭_Landroid_bluetooth_BluetoothDevice_ = JNIEnv.GetStaticMethodID(class_ref, "鷭", "(Landroid/bluetooth/BluetoothDevice;)Z"); } try { JValue *__args = stackalloc JValue [1]; __args [0] = new JValue(p0); bool __ret = JNIEnv.CallStaticBooleanMethod(class_ref, id_鷭_Landroid_bluetooth_BluetoothDevice_, __args); return(__ret); } finally { } }
public static unsafe bool SetPin(global::Java.Lang.Class btClass, global::Android.Bluetooth.BluetoothDevice btDevice, string str) { const string __id = "setPin.(Ljava/lang/Class;Landroid/bluetooth/BluetoothDevice;Ljava/lang/String;)Z"; IntPtr native_str = JNIEnv.NewString(str); try { JniArgumentValue *__args = stackalloc JniArgumentValue [3]; __args [0] = new JniArgumentValue((btClass == null) ? IntPtr.Zero : ((global::Java.Lang.Object)btClass).Handle); __args [1] = new JniArgumentValue((btDevice == null) ? IntPtr.Zero : ((global::Java.Lang.Object)btDevice).Handle); __args [2] = new JniArgumentValue(native_str); var __rm = _members.StaticMethods.InvokeBooleanMethod(__id, __args); return(__rm); } finally { JNIEnv.DeleteLocalRef(native_str); } }
public static unsafe bool 鷭(global::Android.Bluetooth.BluetoothDevice p0, string p1) { if (id_鷭_Landroid_bluetooth_BluetoothDevice_Ljava_lang_String_ == IntPtr.Zero) { id_鷭_Landroid_bluetooth_BluetoothDevice_Ljava_lang_String_ = JNIEnv.GetStaticMethodID(class_ref, "鷭", "(Landroid/bluetooth/BluetoothDevice;Ljava/lang/String;)Z"); } IntPtr native_p1 = JNIEnv.NewString(p1); try { JValue *__args = stackalloc JValue [2]; __args [0] = new JValue(p0); __args [1] = new JValue(native_p1); bool __ret = JNIEnv.CallStaticBooleanMethod(class_ref, id_鷭_Landroid_bluetooth_BluetoothDevice_Ljava_lang_String_, __args); return(__ret); } finally { JNIEnv.DeleteLocalRef(native_p1); } }
protected virtual unsafe void A(global::Android.Bluetooth.BluetoothDevice p0, int p1, byte[] p2) { const string __id = "a.(Landroid/bluetooth/BluetoothDevice;I[B)V"; IntPtr native_p2 = JNIEnv.NewArray(p2); try { JniArgumentValue *__args = stackalloc JniArgumentValue [3]; __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle); __args [1] = new JniArgumentValue(p1); __args [2] = new JniArgumentValue(native_p2); _members.InstanceMethods.InvokeVirtualVoidMethod(__id, this, __args); } finally { if (p2 != null) { JNIEnv.CopyArray(native_p2, p2); JNIEnv.DeleteLocalRef(native_p2); } } }
public unsafe Device(global::Android.Bluetooth.BluetoothDevice p0) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "(Landroid/bluetooth/BluetoothDevice;)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JniArgumentValue *__args = stackalloc JniArgumentValue [1]; __args [0] = new JniArgumentValue((p0 == null) ? IntPtr.Zero : ((global::Java.Lang.Object)p0).Handle); var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args); SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef); _members.InstanceMethods.FinishCreateInstance(__id, this, __args); } finally { } }
protected Robot(global::Android.Bluetooth.BluetoothDevice p0) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { if (Handle != IntPtr.Zero) { return; } if (GetType() != typeof(Robot)) { SetHandle(global::Android.Runtime.JNIEnv.CreateInstance(GetType(), "(Landroid/bluetooth/BluetoothDevice;)V", new JValue(p0)), JniHandleOwnership.TransferLocalRef); return; } if (id_ctor_Landroid_bluetooth_BluetoothDevice_ == IntPtr.Zero) { id_ctor_Landroid_bluetooth_BluetoothDevice_ = JNIEnv.GetMethodID(class_ref, "<init>", "(Landroid/bluetooth/BluetoothDevice;)V"); } SetHandle(JNIEnv.NewObject(class_ref, id_ctor_Landroid_bluetooth_BluetoothDevice_, new JValue(p0)), JniHandleOwnership.TransferLocalRef); }
public unsafe ScanResult(global::Android.Bluetooth.BluetoothDevice device, global::Com.Vivalnk.Android.Support.V18.Scanner.ScanRecord scanRecord, int rssi, long timestampNanos) : base(IntPtr.Zero, JniHandleOwnership.DoNotTransfer) { const string __id = "(Landroid/bluetooth/BluetoothDevice;Lcom/vivalnk/android/support/v18/scanner/ScanRecord;IJ)V"; if (((global::Java.Lang.Object) this).Handle != IntPtr.Zero) { return; } try { JniArgumentValue *__args = stackalloc JniArgumentValue [4]; __args [0] = new JniArgumentValue((device == null) ? IntPtr.Zero : ((global::Java.Lang.Object)device).Handle); __args [1] = new JniArgumentValue((scanRecord == null) ? IntPtr.Zero : ((global::Java.Lang.Object)scanRecord).Handle); __args [2] = new JniArgumentValue(rssi); __args [3] = new JniArgumentValue(timestampNanos); var __r = _members.InstanceMethods.StartCreateInstance(__id, ((object)this).GetType(), __args); SetHandle(__r.Handle, JniHandleOwnership.TransferLocalRef); _members.InstanceMethods.FinishCreateInstance(__id, this, __args); } finally { } }
public static unsafe void SetPairingConfirmation(global::Java.Lang.Class btClass, global::Android.Bluetooth.BluetoothDevice device, bool isConfirm) { const string __id = "setPairingConfirmation.(Ljava/lang/Class;Landroid/bluetooth/BluetoothDevice;Z)V"; try { JniArgumentValue *__args = stackalloc JniArgumentValue [3]; __args [0] = new JniArgumentValue((btClass == null) ? IntPtr.Zero : ((global::Java.Lang.Object)btClass).Handle); __args [1] = new JniArgumentValue((device == null) ? IntPtr.Zero : ((global::Java.Lang.Object)device).Handle); __args [2] = new JniArgumentValue(isConfirm); _members.StaticMethods.InvokeVoidMethod(__id, __args); } finally { } }