コード例 #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"))));
 }