IT. Expert System.

Android Reference

WifiStateTracker


android.net.wifi

Class WifiStateTracker

    • Constructor Detail

      • WifiStateTracker

        public WifiStateTracker(int netType,
                        String networkName)
    • Method Detail

      • startMonitoring

        public void startMonitoring(Context context,
                           Handler target)
        Begin monitoring wifi connectivity
        Specified by:
        startMonitoring in interface NetworkStateTracker
        Parameters:
        context - is the current Android context
        target - is the Hander to which to return the events.
      • teardown

        public boolean teardown()
        Disable connectivity to a network TODO: do away with return value after making MobileDataStateTracker async
        Specified by:
        teardown in interface NetworkStateTracker
        Returns:
        true if a teardown occurred, false if the teardown did not occur.
      • reconnect

        public boolean reconnect()
        Re-enable connectivity to a network after a teardown().
        Specified by:
        reconnect in interface NetworkStateTracker
        Returns:
        true if we're connected or expect to be connected
      • setRadio

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

        public boolean isAvailable()
        Wi-Fi is considered available as long as we have a connection to the supplicant daemon and there is at least one enabled network. If a teardown was explicitly requested, then Wi-Fi can be restarted with a reconnect request, so it is considered available. If the driver has been stopped for any reason other than a teardown request, Wi-Fi is considered unavailable.
        Specified by:
        isAvailable in interface NetworkStateTracker
        Returns:
        true if Wi-Fi connections are possible
      • getLinkCapabilities

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

        public void defaultRouteSet(boolean enabled)
        Set a flag indicating default route is set for the network
        Specified by:
        defaultRouteSet in interface NetworkStateTracker


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: 172 / 158861445. Delta: 0.05096 с