FileDocCategorySizeDatePackage
WpsInfo.javaAPI DocAndroid 5.1 API3069Thu Mar 12 22:22:44 GMT 2015android.net.wifi

WpsInfo

public class WpsInfo extends Object implements android.os.Parcelable
A class representing Wi-Fi Protected Setup {@see WifiP2pConfig}

Fields Summary
public static final int
PBC
Push button configuration
public static final int
DISPLAY
Display pin method configuration - pin is generated and displayed on device
public static final int
KEYPAD
Keypad pin method configuration - pin is entered on device
public static final int
LABEL
Label pin method configuration - pin is labelled on device
public static final int
INVALID
Invalid configuration
public int
setup
Wi-Fi Protected Setup. www.wi-fi.org/wifi-protected-setup has details
public String
BSSID
Passed with pin method KEYPAD
public String
pin
Passed with pin method configuration
public static final Creator
CREATOR
Implement the Parcelable interface
Constructors Summary
public WpsInfo()


      
        setup = INVALID;
        BSSID = null;
        pin = null;
    
public WpsInfo(WpsInfo source)

        if (source != null) {
            setup = source.setup;
            BSSID = source.BSSID;
            pin = source.pin;
        }
    
Methods Summary
public intdescribeContents()
Implement the Parcelable interface

        return 0;
    
public java.lang.StringtoString()

        StringBuffer sbuf = new StringBuffer();
        sbuf.append(" setup: ").append(setup);
        sbuf.append('\n");
        sbuf.append(" BSSID: ").append(BSSID);
        sbuf.append('\n");
        sbuf.append(" pin: ").append(pin);
        sbuf.append('\n");
        return sbuf.toString();
    
public voidwriteToParcel(android.os.Parcel dest, int flags)
Implement the Parcelable interface

        dest.writeInt(setup);
        dest.writeString(BSSID);
        dest.writeString(pin);