0.0.2 • Published 2 years ago

capacitor-bixolon v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

capacitor-bixolon

Plugin for working natively with Bixolon POS controls.

Install

npm install capacitor-bixolon
npx cap sync

API

getBluetoothDevices()

getBluetoothDevices() => Promise<BluetoothDevicesResult>

Returns: Promise<BluetoothDevicesResult>


getNetworkDevices(...)

getNetworkDevices(options: GetNetworkDevicesOptions) => Promise<NetworkDevicesResult>
ParamType
optionsGetNetworkDevicesOptions

Returns: Promise<NetworkDevicesResult>


getUsbDevices(...)

getUsbDevices(options: GetUsbDevicesOptions) => Promise<UsbDevicesResult>
ParamType
optionsGetUsbDevicesOptions

Returns: Promise<UsbDevicesResult>


isInitialized()

isInitialized() => Promise<ValueResult<boolean>>

Returns: Promise<ValueResult<boolean>>


initialize()

initialize() => Promise<void>

addEntry(...)

addEntry(options: AddEntryOptions) => Promise<void>
ParamType
optionsAddEntryOptions

getAllEntries()

getAllEntries() => Promise<GetAllEntriesResult>

Returns: Promise<GetAllEntriesResult>


getEntry(...)

getEntry(options: WithLogicalName) => Promise<GetEntryResult>
ParamType
optionsWithLogicalName

Returns: Promise<GetEntryResult>


modifyEntry(...)

modifyEntry(options: ModifyEntryOptions) => Promise<ValueResult<boolean>>
ParamType
optionsModifyEntryOptions

Returns: Promise<ValueResult<boolean>>


removeAllEntries()

removeAllEntries() => Promise<void>

removeEntry(...)

removeEntry(options: WithLogicalName) => Promise<ValueResult<boolean>>
ParamType
optionsWithLogicalName

Returns: Promise<ValueResult<boolean>>


save()

save() => Promise<void>

createControl(...)

createControl(options: CreateControlOptions) => Promise<ValueResult<string>>
ParamType
optionsCreateControlOptions

Returns: Promise<ValueResult<string>>


disposeControl(...)

disposeControl(options: WithHashKey) => Promise<ValueResult<boolean>>
ParamType
optionsWithHashKey

Returns: Promise<ValueResult<boolean>>


callControl(...)

callControl<T = any>(options: CallControlOptions) => Promise<ValueResult<T> | void>
ParamType
optionsCallControlOptions

Returns: Promise<void | ValueResult<T>>


addControlListener(...)

addControlListener(options: AddControlListenerOptions) => Promise<void>
ParamType
optionsAddControlListenerOptions

removeControlListener(...)

removeControlListener(options: RemoveControlListenerOptions) => Promise<void>
ParamType
optionsRemoveControlListenerOptions

Interfaces

BluetoothDevicesResult

PropType
devicesBluetoothDeviceEntry[]

BluetoothDeviceEntry

PropType
addressstring
aliasstring
namestring
bondStatenumber
typenumber
uuidsstring[]

NetworkDevicesResult

PropType
devicesstring[]

GetNetworkDevicesOptions

PropType
actionnumber
wifiSearchOption{ lookupCount: number; interval: number; wire?: number; }

UsbDevicesResult

PropType
devicesUsbDeviceEntry[]

UsbDeviceEntry

PropType
deviceNamestring
manufacturerNamestring
productNamestring
versionstring
serialNumberstring
deviceIdnumber
vendorIdnumber
productIdnumber
deviceClassnumber
deviceSubclassnumber
deviceProtocolnumber

GetUsbDevicesOptions

PropType
requestPermissionboolean

ValueResult

PropType
valueT

AddEntryOptions

PropType
deviceCategoryBixolonDeviceCategory
productNamestring
deviceBusBixolonDeviceBus
addressstring
secureboolean

GetAllEntriesResult

PropType
entriesEntryWithProperties[]

EntryWithProperties

PropType
propertiesRecord<string, any>

GetEntryResult

PropType
deviceCategorynumber
productNamestring
addressstring
deviceBusnumber

WithLogicalName

PropType
logicalNamestring

ModifyEntryOptions

PropType
deviceBusBixolonDeviceBus
addressstring
secureboolean

CreateControlOptions

PropType
deviceCategoryBixolonDeviceCategory

WithHashKey

PropType
hashKeystring

CallControlOptions

PropType
methodNamestring
argsCallControlArgument[]

HashNativeArgument

PropType
hashKeystring
classTypestring

ComplexNativeArgument

PropType
valueNativePrimitive
classTypestring

ComplexNativeArrayArgument

PropType
value(NativePrimitive | ComplexNativeArgument)[] | null
componentClassTypestring
classTypestring

AddControlListenerOptions

PropType
eventNamestring
eventPropertiesstring[]

RemoveControlListenerOptions

PropType
eventNamestring

Type Aliases

Record

Construct a type with a set of properties K of type T

{

}

CallControlArgument

NativeArgument | NativeArgument[]

NativeArgument

NativePrimitive | HashNativeArgument | ComplexNativeArgument | ComplexNativeArrayArgument

NativePrimitive

string | number | boolean | null

Enums

BixolonDeviceCategory

MembersValue
CashDrawer0
MSR1
POSPrinter2
SmartCardRW3
LocalSmartCardRW4

BixolonDeviceBus

MembersValue
Bluetooth0
Ethernet1
USB2
Wifi3
WifiDirect4
BluetoothLE5
0.0.2

2 years ago

0.0.1

2 years ago