コード例 #1
0
 public static void ReaderInitialized(this IAsReaderDelegate This, AsReader reader)
 {
     if (reader == null)
     {
         throw new ArgumentNullException("reader");
     }
     global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("readerInitialized:"), reader.Handle);
 }
コード例 #2
0
        public static void ReadTag(this IAsReaderDelegate This, string tag, float rssi, float phase, float frequency)
        {
            if (tag == null)
            {
                throw new ArgumentNullException("tag");
            }
            var nstag = NSString.CreateNative(tag);

            global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr_float_float_float(This.Handle, Selector.GetHandle("readTag:rssi:phase:frequency:"), nstag, rssi, phase, frequency);
            NSString.ReleaseNative(nstag);
        }
コード例 #3
0
        public static void DetectBarcode(this IAsReaderDelegate This, BarcodeType barcodeType, string codeId, NSData barcodeData)
        {
            if (codeId == null)
            {
                throw new ArgumentNullException("codeId");
            }
            if (barcodeData == null)
            {
                throw new ArgumentNullException("barcodeData");
            }
            var nscodeId = NSString.CreateNative(codeId);

            global::ApiDefinition.Messaging.void_objc_msgSend_UInt32_IntPtr_IntPtr(This.Handle, Selector.GetHandle("detectBarcode:codeId:barcodeData:"), (UInt32)barcodeType, nscodeId, barcodeData.Handle);
            NSString.ReleaseNative(nscodeId);
        }
コード例 #4
0
        public static void AccessResult(this IAsReaderDelegate This, ResultCode error, CommandType action, string epc, string data, float rssi, float phase)
        {
            if (epc == null)
            {
                throw new ArgumentNullException("epc");
            }
            if (data == null)
            {
                throw new ArgumentNullException("data");
            }
            var nsepc  = NSString.CreateNative(epc);
            var nsdata = NSString.CreateNative(data);

            global::ApiDefinition.Messaging.void_objc_msgSend_UInt32_UInt32_IntPtr_IntPtr_float_float(This.Handle, Selector.GetHandle("accessResult:actionState:epc:data:rssi:phase:"), (UInt32)error, (UInt32)action, nsepc, nsdata, rssi, phase);
            NSString.ReleaseNative(nsepc);
            NSString.ReleaseNative(nsdata);
        }
コード例 #5
0
 public static void ChangedActionState(this IAsReaderDelegate This, CommandType action, nint resultCode)
 {
     global::ApiDefinition.Messaging.void_objc_msgSend_UInt32_nint(This.Handle, Selector.GetHandle("changedActionState:resultCode:"), (UInt32)action, resultCode);
 }
コード例 #6
0
 public static void UpdateDeviceState(this IAsReaderDelegate This, ResultCode error)
 {
     global::ApiDefinition.Messaging.void_objc_msgSend_UInt32(This.Handle, Selector.GetHandle("updateDeviceState:"), (UInt32)error);
 }
コード例 #7
0
 public static bool OnAsReaderTriggerKeyEvent(this IAsReaderDelegate This, bool status)
 {
     return(global::ApiDefinition.Messaging.bool_objc_msgSend_bool(This.Handle, Selector.GetHandle("onAsReaderTriggerKeyEvent:"), status));
 }
コード例 #8
0
 public static void CommandComplete(this IAsReaderDelegate This, CommandType command)
 {
     global::ApiDefinition.Messaging.void_objc_msgSend_UInt32(This.Handle, Selector.GetHandle("commandComplete:"), (UInt32)command);
 }