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 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 { } }