Magnetic Card Manipulator
Allows the reading and writing of Magnetic Cards
Functions | Description |
---|---|
readCard() | Read a card data |
writeCard(data) | Writes a card data |
hasCard() | Check the presence of a card |
ejectCard() | Drops the current card |
setLabel(label) | Sets a card label |
getLabel() | Gets the card's label |
setSecure(value) | Sets if the card should hide the its data tooltip |
readCard()
Description
Read a card data
Returns
- boolean | string - The state of the operation or data string
- string - Error message, If there is a failure on the operation
writeCard(data)
Description
Writes a card data
Parameters
- data: string - the value to store
Returns
- boolean - The state of the operation
- string - Error message, If there is a failure on the operation
hasCard()
Description
Check the presence of a card
Returns
- boolean - if there is a card present
ejectCard()
Description
Drops the current card
Returns
- boolean - if could drop the card
setLabel(label)
Description
Sets a card label
Parameters
- label: string - the label to set
Returns
- boolean - if rename the card
getLabel()
Description
Gets the card's label
Returns
- boolean | string - The state of the operation or the label
- string - Error message, If there is a failure on the operation
setSecure(value)
Description
Sets if the card should hide the its data tooltip
Parameters
- value: boolean - the sensibility flag
Returns
- boolean | string - The state of the operation or the label
- string - Error message, If there is a failure on the operation