]> git.proxmox.com Git - sencha-touch.git/blob - src/src/device/device/Sencha.js
import Sencha Touch 2.4.2 source
[sencha-touch.git] / src / src / device / device / Sencha.js
1 /**
2 * @private
3 */
4 Ext.define('Ext.device.device.Sencha', {
5 extend: 'Ext.device.device.Abstract',
6
7 constructor: function() {
8 this.callSuper(arguments);
9 this.name = device.name;
10 this.uuid = device.uuid;
11 this.platform = device.platformName || Ext.os.name;
12 this.scheme = Ext.device.Communicator.send({
13 command: 'OpenURL#getScheme',
14 sync: true
15 }) || false;
16
17 Ext.device.Communicator.send({
18 command: 'OpenURL#watch',
19 callbacks: {
20 callback: function(scheme) {
21 this.scheme = scheme || false;
22 this.fireEvent('schemeupdate', this, this.scheme);
23 }
24 },
25 scope: this
26 });
27 },
28
29 openURL: function(url) {
30 Ext.device.Communicator.send({
31 command: 'OpenURL#open',
32 url: url
33 });
34 }
35 });