FileDocCategorySizeDatePackage
WifiDisplaySessionInfo.javaAPI DocAndroid 5.1 API3244Thu Mar 12 22:22:10 GMT 2015android.hardware.display

WifiDisplaySessionInfo

public final class WifiDisplaySessionInfo extends Object implements android.os.Parcelable
This class contains information regarding a wifi display session (such as session id, source ip address, etc.). This is needed for Wifi Display Certification process.

This object is immutable.

hide

Fields Summary
private final boolean
mClient
private final int
mSessionId
private final String
mGroupId
private final String
mPassphrase
private final String
mIP
public static final Creator
CREATOR
Constructors Summary
public WifiDisplaySessionInfo()


      
        this(true, 0, "", "", "");
    
public WifiDisplaySessionInfo(boolean client, int session, String group, String pp, String ip)

        mClient = client;
        mSessionId = session;
        mGroupId = group;
        mPassphrase = pp;
        mIP = ip;
    
Methods Summary
public intdescribeContents()

        return 0;
    
public java.lang.StringgetGroupId()

        return mGroupId;
    
public java.lang.StringgetIP()

        return mIP;
    
public java.lang.StringgetPassphrase()

        return mPassphrase;
    
public intgetSessionId()

        return mSessionId;
    
public booleanisClient()

        return mClient;
    
public java.lang.StringtoString()

        return "WifiDisplaySessionInfo:"
                +"\n    Client/Owner: " + (mClient ? "Client":"Owner")
                +"\n    GroupId: " + mGroupId
                +"\n    Passphrase: " + mPassphrase
                +"\n    SessionId: " + mSessionId
                +"\n    IP Address: " + mIP
                ;
    
public voidwriteToParcel(android.os.Parcel dest, int flags)

        dest.writeInt(mClient ? 1 : 0);
        dest.writeInt(mSessionId);
        dest.writeString(mGroupId);
        dest.writeString(mPassphrase);
        dest.writeString(mIP);