IT. Expert System.

Android Reference


Class WifiP2pGroup

    • Field Detail


        public static final int TEMPORARY_NET_ID
        The temporary network id.
        See Also:
        Constant Field Values

        public static final int PERSISTENT_NET_ID
        The persistent network id. If a matching persistent profile is found, use it. Otherwise, create a new persistent profile.
        See Also:
        Constant Field Values
    • Constructor Detail

      • WifiP2pGroup

        public WifiP2pGroup()
      • WifiP2pGroup

        public WifiP2pGroup(String supplicantEvent)
                     throws IllegalArgumentException
        supplicantEvent - formats supported include P2P-GROUP-STARTED p2p-wlan0-0 [client|GO] ssid="DIRECT-W8" freq=2437 [psk=2182b2e50e53f260d04f3c7b25ef33c965a3291b9b36b455a82d77fd82ca15bc| passphrase="fKG4jMe3"] go_dev_addr=fa:7b:7a:42:02:13 [PERSISTENT] P2P-GROUP-REMOVED p2p-wlan0-0 [client|GO] reason=REQUESTED P2P-INVITATION-RECEIVED sa=fa:7b:7a:42:02:13 go_dev_addr=f8:7b:7a:42:02:13 bssid=fa:7b:7a:42:82:13 unknown-network P2P-INVITATION-RECEIVED sa=b8:f9:34:2a:c7:9d persistent=0 Note: The events formats can be looked up in the wpa_supplicant code
      • WifiP2pGroup

        public WifiP2pGroup(WifiP2pGroup source)
        copy constructor
    • Method Detail

      • setNetworkName

        public void setNetworkName(String networkName)
      • getNetworkName

        public String getNetworkName()
        Get the network name (SSID) of the group. Legacy Wi-Fi clients will discover the p2p group using the network name.
      • setIsGroupOwner

        public void setIsGroupOwner(boolean isGo)
      • isGroupOwner

        public boolean isGroupOwner()
        Check whether this device is the group owner of the created p2p group
      • addClient

        public void addClient(String address)
      • removeClient

        public boolean removeClient(String address)
      • isClientListEmpty

        public boolean isClientListEmpty()
      • getClientList

        public Collection<WifiP2pDevice> getClientList()
        Get the list of clients currently part of the p2p group
      • setPassphrase

        public void setPassphrase(String passphrase)
      • getPassphrase

        public String getPassphrase()
        Get the passphrase of the group. This function will return a valid passphrase only at the group owner. Legacy Wi-Fi clients will need this passphrase alongside network name obtained from getNetworkName() to join the group
      • setInterface

        public void setInterface(String intf)
      • getInterface

        public String getInterface()
        Get the interface name on which the group is created
      • getNetworkId

        public int getNetworkId()
      • setNetworkId

        public void setNetworkId(int netId)
      • toString

        public String toString()
        Description copied from class: Object
        Returns a string containing a concise, human-readable description of this object. Subclasses are encouraged to override this method and provide an implementation that takes into account the object's type and data. The default implementation is equivalent to the following expression:
           getClass().getName() + '@' + Integer.toHexString(hashCode())

        See Writing a useful toString method if you intend implementing your own toString method.

        toString in class Object
        a printable representation of this object.
      • describeContents

        public int describeContents()
        Implement the Parcelable interface
        Specified by:
        describeContents in interface Parcelable
        a bitmask indicating the set of special object types marshalled by the Parcelable.


Android Reference

Java basics

Java Enterprise Edition (EE)

Java Standard Edition (SE)





Java Script








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

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: 54 / 158748766. Delta: 0.00765 с