IT. Expert System.

Android Reference

NetworkStateTracker


android.net

Interface NetworkStateTracker

    • Field Detail

      • EVENT_STATE_CHANGED

        static final int EVENT_STATE_CHANGED
        The network state has changed and the NetworkInfo object contains the new state. msg.what = EVENT_STATE_CHANGED msg.obj = NetworkInfo object
        See Also:
        Constant Field Values
      • EVENT_CONFIGURATION_CHANGED

        static final int EVENT_CONFIGURATION_CHANGED
        msg.what = EVENT_CONFIGURATION_CHANGED msg.obj = NetworkInfo object
        See Also:
        Constant Field Values
      • EVENT_RESTORE_DEFAULT_NETWORK

        static final int EVENT_RESTORE_DEFAULT_NETWORK
        msg.what = EVENT_RESTORE_DEFAULT_NETWORK msg.obj = FeatureUser object
        See Also:
        Constant Field Values
      • EVENT_NETWORK_SUBTYPE_CHANGED

        static final int EVENT_NETWORK_SUBTYPE_CHANGED
        msg.what = EVENT_NETWORK_SUBTYPE_CHANGED msg.obj = NetworkInfo object
        See Also:
        Constant Field Values
    • Method Detail

      • startMonitoring

        void startMonitoring(Context context,
                           Handler target)
        Begin monitoring data connectivity. This is the first method called when this interface is used.
        Parameters:
        context - is the current Android context
        target - is the Hander to which to return the events.
      • getNetworkInfo

        NetworkInfo getNetworkInfo()
        Fetch NetworkInfo for the network
      • getLinkProperties

        LinkProperties getLinkProperties()
        Return the LinkProperties for the connection.
        Returns:
        a copy of the LinkProperties, is never null.
      • getLinkCapabilities

        LinkCapabilities getLinkCapabilities()
        A capability is an Integer/String pair, the capabilities are defined in the class LinkSocket#Key.
        Returns:
        a copy of this connections capabilities, may be empty but never null.
      • getTcpBufferSizesPropName

        String getTcpBufferSizesPropName()
        Return the system properties name associated with the tcp buffer sizes for this network.
      • teardown

        boolean teardown()
        Disable connectivity to a network
        Returns:
        true if a teardown occurred, false if the teardown did not occur.
      • reconnect

        boolean reconnect()
        Reenable connectivity to a network after a teardown().
        Returns:
        true if we're connected or expect to be connected
      • captivePortalCheckComplete

        void captivePortalCheckComplete()
        Ready to switch on to the network after captive portal check
      • setRadio

        boolean setRadio(boolean turnOn)
        Turn the wireless radio off for a network.
        Parameters:
        turnOn - true to turn the radio on, false
      • isAvailable

        boolean isAvailable()
        Returns an indication of whether this network is available for connections. A value of false means that some quasi-permanent condition prevents connectivity to this network. NOTE that this is broken on multi-connection devices. Should be fixed in J release TODO - fix on multi-pdp devices
      • setUserDataEnable

        void setUserDataEnable(boolean enabled)
        User control of data connection through this network, typically persisted internally.
      • setPolicyDataEnable

        void setPolicyDataEnable(boolean enabled)
        Policy control of data connection through this network, typically not persisted internally. Usually used when NetworkPolicy.limitBytes is passed.
      • isPrivateDnsRouteSet

        boolean isPrivateDnsRouteSet()
        Check if private DNS route is set for the network
      • privateDnsRouteSet

        void privateDnsRouteSet(boolean enabled)
        Set a flag indicating private DNS route is set
      • isDefaultRouteSet

        boolean isDefaultRouteSet()
        Check if default route is set
      • defaultRouteSet

        void defaultRouteSet(boolean enabled)
        Set a flag indicating default route is set for the network
      • isTeardownRequested

        boolean isTeardownRequested()
        Check if tear down was requested
      • setTeardownRequested

        void setTeardownRequested(boolean isRequested)
        Indicate tear down requested from connectivity
      • setDependencyMet

        void setDependencyMet(boolean met)
        An external dependency has been met/unmet


Content

Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)

SQL

HTML

PHP

CSS

Java Script

MYSQL

JQUERY

VBS

REGEX

C

C++

C#

Design patterns

RFC (standard status)

RFC (proposed standard status)

RFC (draft standard status)

RFC (informational status)

RFC (experimental status)

RFC (best current practice status)

RFC (historic status)

RFC (unknown status)

IT dictionary

License.
All information of this service is derived from the free sources and is provided solely in the form of quotations. This service provides information and interfaces solely for the familiarization (not ownership) and under the "as is" condition.
Copyright 2016 © ELTASK.COM. All rights reserved.
Site is optimized for mobile devices.
Downloads: 827 / 96446745. Delta: 0.02735 с