/**@class android.net.NetworkInfo implements android.os.Parcelable @extends java.lang.Object Describes the status of a network interface. <p>Use {@link android.net.ConnectivityManager#getActiveNetworkInfo()} to get an instance that represents the current network connection. */ var NetworkInfo = { /** Implement the Parcelable interface. @hide */ CREATOR : "null", /**Reports the type of network to which the info in this {@code NetworkInfo} pertains. @return {Number} one of {@link ConnectivityManager#TYPE_MOBILE}, {@link ConnectivityManager#TYPE_WIFI}, {@link ConnectivityManager#TYPE_WIMAX}, {@link ConnectivityManager#TYPE_ETHERNET}, {@link ConnectivityManager#TYPE_BLUETOOTH}, or other types defined by {@link ConnectivityManager} */ getType : function( ) {}, /** @hide */ setType : function( ) {}, /**Return a network-type-specific integer describing the subtype of the network. @return {Number} the network subtype */ getSubtype : function( ) {}, /** @hide */ setSubtype : function( ) {}, /**Return a human-readable name describe the type of the network, for example "WIFI" or "MOBILE". @return {String} the name of the network type */ getTypeName : function( ) {}, /**Return a human-readable name describing the subtype of the network. @return {String} the name of the network subtype */ getSubtypeName : function( ) {}, /**Indicates whether network connectivity exists or is in the process of being established. This is good for applications that need to do anything related to the network other than read or write data. For the latter, call {@link #isConnected}() instead, which guarantees that the network is fully usable. @return {Boolean} {@code true} if network connectivity exists or is in the process of being established, {@code false} otherwise. */ isConnectedOrConnecting : function( ) {}, /**Indicates whether network connectivity exists and it is possible to establish connections and pass data. <p>Always call this before attempting to perform data transactions. @return {Boolean} {@code true} if network connectivity exists, {@code false} otherwise. */ isConnected : function( ) {}, /**Indicates whether network connectivity is possible. A network is unavailable when a persistent or semi-persistent condition prevents the possibility of connecting to that network. Examples include <ul> <li>The device is out of the coverage area for any network of this type.</li> <li>The device is on a network other than the home network (i.e., roaming), and data roaming has been disabled.</li> <li>The device's radio is turned off, e.g., because airplane mode is enabled.</li> </ul> @return {Boolean} {@code true} if the network is available, {@code false} otherwise */ isAvailable : function( ) {}, /**Sets if the network is available, ie, if the connectivity is possible. @param {Boolean} isAvailable the new availability value. @hide */ setIsAvailable : function( ) {}, /**Indicates whether the current attempt to connect to the network resulted from the ConnectivityManager trying to fail over to this network following a disconnect from another network. @return {Boolean} {@code true} if this is a failover attempt, {@code false} otherwise. */ isFailover : function( ) {}, /**Set the failover boolean. @param {Boolean} isFailover {@code true} to mark the current connection attempt as a failover. @hide */ setFailover : function( ) {}, /**Indicates whether the device is currently roaming on this network. When {@code true}, it suggests that use of data on this network may incur extra costs. @return {Boolean} {@code true} if roaming is in effect, {@code false} otherwise. */ isRoaming : function( ) {}, /**{@hide} */ setRoaming : function( ) {}, /**Reports the current coarse-grained state of the network. @return {Object {android.net.NetworkInfo.State}} the coarse-grained state */ getState : function( ) {}, /**Reports the current fine-grained state of the network. @return {Object {android.net.NetworkInfo.DetailedState}} the fine-grained state */ getDetailedState : function( ) {}, /**Sets the fine-grained state of the network. @param {Object {NetworkInfo.DetailedState}} detailedState the {@link DetailedState}. @param {String} reason a {@code String} indicating the reason for the state change, if one was supplied. May be {@code null}. @param {String} extraInfo an optional {@code String} providing addditional network state information passed up from the lower networking layers. @hide */ setDetailedState : function( ) {}, /**Set the extraInfo field. @param {String} extraInfo an optional {@code String} providing addditional network state information passed up from the lower networking layers. @hide */ setExtraInfo : function( ) {}, /**Report the reason an attempt to establish connectivity failed, if one is available. @return {String} the reason for failure, or null if not available */ getReason : function( ) {}, /**Report the extra information about the network state, if any was provided by the lower networking layers. @return {String} the extra information, or null if not available */ getExtraInfo : function( ) {}, /** */ toString : function( ) {}, /**Implement the Parcelable interface @hide */ describeContents : function( ) {}, /**Implement the Parcelable interface. @hide */ writeToParcel : function( ) {}, };