Example #1
0
 public static void SetReadStringEventDelegate(this IEpos2Keyboard This, Epos2KbdReadStringDelegate @delegate)
 {
     if (@delegate == null)
     {
         throw new ArgumentNullException("@delegate");
     }
     global::ApiDefinition.Messaging.void_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("setReadStringEventDelegate:"), @delegate.Handle);
 }
Example #2
0
 public static int SetPrefix(this IEpos2Keyboard This, NSData data)
 {
     if (data == null)
     {
         throw new ArgumentNullException("data");
     }
     return(global::ApiDefinition.Messaging.int_objc_msgSend_IntPtr(This.Handle, Selector.GetHandle("setPrefix:"), data.Handle));
 }
Example #3
0
        public static int Connect(this IEpos2Keyboard 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);
        }
Example #4
0
 public static void Dealloc(this IEpos2Keyboard This)
 {
     global::ApiDefinition.Messaging.void_objc_msgSend(This.Handle, Selector.GetHandle("dealloc"));
 }
Example #5
0
 public static string GetLocation(this IEpos2Keyboard This)
 {
     return(NSString.FromHandle(global::ApiDefinition.Messaging.IntPtr_objc_msgSend(This.Handle, Selector.GetHandle("getLocation"))));
 }
Example #6
0
 public static NSData GetPrefix(this IEpos2Keyboard This)
 {
     return(Runtime.GetNSObject <NSData> (global::ApiDefinition.Messaging.IntPtr_objc_msgSend(This.Handle, Selector.GetHandle("getPrefix"))));
 }
Example #7
0
 public static Epos2KeyboardStatusInfo GetStatus(this IEpos2Keyboard This)
 {
     return(Runtime.GetNSObject <Epos2KeyboardStatusInfo> (global::ApiDefinition.Messaging.IntPtr_objc_msgSend(This.Handle, Selector.GetHandle("getStatus"))));
 }
Example #8
0
 public static int GetDisconnect(this IEpos2Keyboard This)
 {
     return(global::ApiDefinition.Messaging.int_objc_msgSend(This.Handle, Selector.GetHandle("disconnect")));
 }