예제 #1
0
        public void DeviceSetPropertyBool(NfcProperty property, bool enable)
        {
            var result = Libnfc.DeviceSetPropertyBool(devicePointer, property, enable);

            if (result < 0)
            {
                Perror("nfc_device_set_property_bool");
                throw new Exception("nfc_device_set_property_bool");
            }
        }
예제 #2
0
        public void SetProperty(NfcProperty property, bool value)
        {
            NfcError err = NativeMethods.device_set_property_bool(this.handle, property, value);

            NfcException.Raise(err);
        }
예제 #3
0
 public static extern NfcError device_set_property_int(IntPtr device, NfcProperty property, int value);
예제 #4
0
 public static extern NfcError device_set_property_bool(IntPtr device, NfcProperty property, bool value);
예제 #5
0
 public static extern int DeviceSetPropertyBool(IntPtr pnd, NfcProperty property, bool bEnable);