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.notify(message)
show notification with new offers.
|
<static> |
Device.onReady()
called when the device be ready
|
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.notify(message)
show notification with new offers.
1. notify at notification bar.
2. notify with sound for 1 second.
3. notify with vibration for 1.5 second.
this done using plugin for notifications download here
1. notify at notification bar.
2. notify with sound for 1 second.
3. notify with vibration for 1.5 second.
this done using plugin for notifications download here
- Parameters:
- {String} message
- message to view
<static>
Device.onReady()
called when the device be ready