Пример #1
0
 public static void SetConnectionEventDelegate(this IEpos2BarcodeScanner This, Epos2ConnectionDelegate @delegate)
 {
     if (@delegate == null)
     {
         throw new ArgumentNullException("@delegate");
     }
     global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("setConnectionEventDelegate:"), @delegate.Handle);
 }
Пример #2
0
        public static int Connect(this IEpos2BarcodeScanner This, string target, global::System.nint timeout)
        {
            if (target == null)
            {
                throw new ArgumentNullException("target");
            }
            var nstarget = NSString.CreateNative(target);

            int ret;

            ret = global::ApiDefinition.Messaging.int_objc_msgSend_IntPtr_nint(This.Handle, Selector.GetHandle("connect:timeout:"), nstarget, timeout);
            NSString.ReleaseNative(nstarget);

            return(ret);
        }
Пример #3
0
 public static int GetDisconnect(this IEpos2BarcodeScanner This)
 {
     return(global::ApiDefinition.Messaging.int_objc_msgSend(This.Handle, Selector.GetHandle("disconnect")));
 }
Пример #4
0
 public static void Dealloc(this IEpos2BarcodeScanner This)
 {
     global::ApiDefinition.Messaging.void_objc_msgSend(This.Handle, Selector.GetHandle("dealloc"));
 }
Пример #5
0
 public static string GetLocation(this IEpos2BarcodeScanner This)
 {
     return(NSString.FromHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSend(This.Handle, Selector.GetHandle("getLocation"))));
 }
Пример #6
0
 public static Epos2ScannerStatusInfo GetStatus(this IEpos2BarcodeScanner This)
 {
     return(Runtime.GetNSObject <Epos2ScannerStatusInfo> (global::ApiDefinition.Messaging.IntPtr_objc_msgSend(This.Handle, Selector.GetHandle("getStatus"))));
 }