Beispiel #1
0
 public virtual void GetAllCharacteristicsFromPeripheral(global::MonoTouch.CoreBluetooth.CBPeripheral p)
 {
     if (p == null)
     {
         throw new ArgumentNullException("p");
     }
     if (IsDirectBinding)
     {
         MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr(this.Handle, selGetAllCharacteristicsFromPeripheral_Handle, p.Handle);
     }
     else
     {
         MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr(this.SuperHandle, selGetAllCharacteristicsFromPeripheral_Handle, p.Handle);
     }
 }
Beispiel #2
0
 public virtual void PrintPeripheralInfo(global::MonoTouch.CoreBluetooth.CBPeripheral peripheral)
 {
     if (peripheral == null)
     {
         throw new ArgumentNullException("peripheral");
     }
     if (IsDirectBinding)
     {
         MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr(this.Handle, selPrintPeripheralInfo_Handle, peripheral.Handle);
     }
     else
     {
         MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr(this.SuperHandle, selPrintPeripheralInfo_Handle, peripheral.Handle);
     }
 }
Beispiel #3
0
 public virtual void EnableReadNotification(global::MonoTouch.CoreBluetooth.CBPeripheral p)
 {
     if (p == null)
     {
         throw new ArgumentNullException("p");
     }
     if (IsDirectBinding)
     {
         MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr(this.Handle, selEnableReadNotification_Handle, p.Handle);
     }
     else
     {
         MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr(this.SuperHandle, selEnableReadNotification_Handle, p.Handle);
     }
 }
Beispiel #4
0
 public virtual global::MonoTouch.CoreBluetooth.CBService FindServiceFromUUID(global::MonoTouch.CoreBluetooth.CBUUID UUID, global::MonoTouch.CoreBluetooth.CBPeripheral p)
 {
     if (UUID == null)
     {
         throw new ArgumentNullException("UUID");
     }
     if (p == null)
     {
         throw new ArgumentNullException("p");
     }
     if (IsDirectBinding)
     {
         return((global::MonoTouch.CoreBluetooth.CBService)Runtime.GetNSObject(MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSend_IntPtr_IntPtr(this.Handle, selFindServiceFromUUIDP_Handle, UUID.Handle, p.Handle)));
     }
     else
     {
         return((global::MonoTouch.CoreBluetooth.CBService)Runtime.GetNSObject(MonoTouch.ObjCRuntime.Messaging.IntPtr_objc_msgSendSuper_IntPtr_IntPtr(this.SuperHandle, selFindServiceFromUUIDP_Handle, UUID.Handle, p.Handle)));
     }
 }
Beispiel #5
0
 public virtual void WriteValue(global::MonoTouch.CoreBluetooth.CBUUID serviceUUID, global::MonoTouch.CoreBluetooth.CBUUID characteristicUUID, global::MonoTouch.CoreBluetooth.CBPeripheral p, NSData data)
 {
     if (serviceUUID == null)
     {
         throw new ArgumentNullException("serviceUUID");
     }
     if (characteristicUUID == null)
     {
         throw new ArgumentNullException("characteristicUUID");
     }
     if (p == null)
     {
         throw new ArgumentNullException("p");
     }
     if (data == null)
     {
         throw new ArgumentNullException("data");
     }
     if (IsDirectBinding)
     {
         MonoTouch.ObjCRuntime.Messaging.void_objc_msgSend_IntPtr_IntPtr_IntPtr_IntPtr(this.Handle, selWriteValueCharacteristicUUIDPData_Handle, serviceUUID.Handle, characteristicUUID.Handle, p.Handle, data.Handle);
     }
     else
     {
         MonoTouch.ObjCRuntime.Messaging.void_objc_msgSendSuper_IntPtr_IntPtr_IntPtr_IntPtr(this.SuperHandle, selWriteValueCharacteristicUUIDPData_Handle, serviceUUID.Handle, characteristicUUID.Handle, p.Handle, data.Handle);
     }
 }