| Platform | Since |
|---|---|
| Android | 0.1 |
| iPhone | 0.1 |
| iPad | 0.1 |
| Mobile Web | 0.1 |
The top level Network module. The Network module is used accessing Networking related functionality, including Titanium.Network.Socket
| Name | Summary |
|---|---|
| Titanium.Network.BonjourBrowser |
A browser for the discovery and retrieval of Bonjour services available on the network. (iPhone, iPad only.) |
| Titanium.Network.BonjourService |
Describes a service on the network which is published by Bonjour. (iPhone, iPad only.) |
| Titanium.Network.HTTPClient |
The HttpClient instance returned from |
| Titanium.Network.TCPSocket |
Deprecated DEPRECATED: USE |
| Name | Summary |
|---|---|
| addConnectivityListener |
Deprecated adds a connectivity listener to listen for network changes. This method has been deprecated in favor of listening for a |
| addEventListener |
Adds the specified callback as an event listener for the named event. |
| createBonjourBrowser |
create and return an instance of |
| createBonjourService |
create and return an instance of |
| createHTTPClient |
Create and return an instance of |
| createTCPSocket |
Deprecated create and return an instance of |
| decodeURIComponent |
decode a URI component part using URI encoding |
| encodeURIComponent |
encode a URI component part using URI encoding |
| fireEvent |
Fires a synthesized event to any registered listeners. |
| registerForPushNotifications |
register for push notifications with the Apple Push Notification Service. (iPhone, iPad only.) |
| removeConnectivityListener |
Deprecated removes a connectivity listener. This method has been deprecated in favor of listening for a |
| removeEventListener |
Removes the specified callback as an event listener for the named event. |
| Name | Type | Summary |
|---|---|---|
| INADDR_ANY | String |
constant value representing the ability for sockets to listen on any locally available network device (iPhone, iPad, Mobile Web only.) read-only |
| NETWORK_LAN | Number |
constant value to indicate that the network is LAN (iPhone, iPad, Mobile Web only.) read-only |
| NETWORK_MOBILE | Number |
constant value to indicate that the network is MOBILE (iPhone, iPad, Mobile Web only.) read-only |
| NETWORK_NONE | Number |
constant value to indicate that the network is not available (iPhone, iPad, Mobile Web only.) read-only |
| NETWORK_UNKNOWN | Number |
constant value to indicate that the network is not known (iPhone, iPad, Mobile Web only.) read-only |
| NETWORK_WIFI | Number |
constant value to indicate that the network is WIFI (iPhone, iPad, Mobile Web only.) read-only |
| NOTIFICATION_TYPE_ALERT | Number |
constant value for the push notification alert type (iPhone, iPad, Mobile Web only.) read-only |
| NOTIFICATION_TYPE_BADGE | Number |
constant value for the push notification badge type (iPhone, iPad, Mobile Web only.) read-only |
| NOTIFICATION_TYPE_SOUND | Number |
constant value for the push notification sound type (iPhone, iPad, Mobile Web only.) read-only |
| READ_MODE | Number |
constant value specifying read-only mode for sockets (iPhone, iPad, Mobile Web only.) read-only |
| READ_WRITE_MODE | Number |
constant value specifying read-write mode for sockets (iPhone, iPad, Mobile Web only.) read-only |
| SOCKET_CLOSED | Number |
constant value representing a socket in the CLOSED state (iPhone, iPad only.) read-only |
| SOCKET_CONNECTED | Number |
constant value representing a socket in the CONNECTED state (iPhone, iPad only.) read-only |
| SOCKET_ERROR | Number |
constant value representing a socket in the ERROR state (iPhone, iPad only.) read-only |
| SOCKET_INITIALIZED | Number |
constant value representing a socket in the INITIALIZED state (iPhone, iPad only.) read-only |
| SOCKET_LISTENING | Number |
constant value representing a socket in the LISTENING state (iPhone, iPad only.) read-only |
| TLS_VERSION_1_0 | Number |
constant value specifying TLS version 1.0 for SSL (iPhone, iPad only.) read-only |
| TLS_VERSION_1_1 | Number |
constant value specifying TLS version 1.1 for SSL (iPhone, iPad only.) read-only |
| TLS_VERSION_1_2 | Number |
constant value specifying TLS version 1.2 for SSL (iPhone, iPad only.) read-only |
| WRITE_MODE | Number |
constant value specifying write-only mode for sockets (iPhone, iPad, Mobile Web only.) read-only |
| httpURLFormatter | Callback<String> |
User-defined function that is called everytime HTTPClient connects to a remote resource. (Mobile Web only.) |
| networkType | Number |
the network type value as a constant. read-only |
| networkTypeName | String |
the network type name constant. Returns one of |
| online | Boolean |
boolean value that indicates if the network is reachable to the Internet either via WIFI or Carrier network read-only |
| remoteDeviceUUID | String |
the remote device UUID if the device was registered with the Apple Push Notification Service or null if not set. (iPhone, iPad only.) |
| remoteNotificationTypes | Array<Object> |
returns an array of network type constants enabled for the application. (iPhone, iPad only.) |
| remoteNotificationsEnabled | Boolean |
returns true if remote notifications have been enabled. (iPhone, iPad only.) |
| Name | Summary |
|---|---|
| change |
fired upon a network connectivity change |