]> git.proxmox.com Git - sencha-touch.git/blob - src/src/device/notification/Sencha.js
import Sencha Touch 2.4.2 source
[sencha-touch.git] / src / src / device / notification / Sencha.js
1 /**
2 * @private
3 */
4 Ext.define('Ext.device.notification.Sencha', {
5 extend: 'Ext.device.notification.Abstract',
6 requires: ['Ext.device.Communicator'],
7
8 show: function() {
9 var config = this.callParent(arguments);
10
11 Ext.device.Communicator.send({
12 command: 'Notification#show',
13 callbacks: {
14 callback: config.callback
15 },
16 scope : config.scope,
17 title : config.title,
18 message: config.message,
19 buttons: config.buttons.join(',') //@todo fix this
20 });
21 },
22
23 vibrate: function() {
24 Ext.device.Communicator.send({
25 command: 'Notification#vibrate'
26 });
27 }
28 });