Namespace Device
Defined in: device.js.
Constructor Attributes | Constructor Name and Description |
---|---|
conatins device functionalities
|
Method Attributes | Method Name and Description |
---|---|
<static> |
Device.display()
display the content of the local database.
|
<static> |
Device.onReady()
called when the device be ready
|
<static> |
Device.playBeep()
play sound one time when inserting new offers
|
<static> |
Device.showAlert(message)
show notification with new offers
|
<static> |
Device.vibrate()
vibrate for 1.5 sec when inserting new offers
|
Method Detail
<static>
Device.display()
display the content of the local database.
Description
select records from myProduct table on the local database named main and display it on HTML elements
Description
select records from myProduct table on the local database named main and display it on HTML elements
<static>
Device.onReady()
called when the device be ready
<static>
Device.playBeep()
play sound one time when inserting new offers
<static>
Device.showAlert(message)
show notification with new offers
- Parameters:
- {String} message
- message to view
<static>
Device.vibrate()
vibrate for 1.5 sec when inserting new offers