]> git.proxmox.com Git - sencha-touch.git/blob - src/src/ux/device/Twitter.js
import Sencha Touch 2.4.2 source
[sencha-touch.git] / src / src / ux / device / Twitter.js
1 /**
2 * Allows you to interact with the Twitter API on iOS devices from within your Cordova application.
3 *
4 * For setup information, please read the [plugin guide](https://github.com/phonegap/phonegap-plugins/tree/master/iOS/Twitter).
5 *
6 * @mixins Ext.ux.device.twitter.Abstract
7 *
8 * For more information regarding Native APIs, please review our [Native APIs guide](../../../packaging/native_apis.html).
9 */
10 Ext.define('Ext.ux.device.Twitter', {
11 singleton: true,
12
13 requires: [
14 'Ext.device.Communicator',
15 'Ext.ux.device.twitter.Cordova'
16 ],
17
18 constructor: function() {
19 var browserEnv = Ext.browser.is;
20 if (browserEnv.WebView && browserEnv.Cordova) {
21 return Ext.create('Ext.ux.device.twitter.Cordova');
22 } else {
23 return Ext.create('Ext.ux.device.twitter.Abstract');
24 }
25 }
26 });