to top
AFEX APIs
public class

WifiConfigBasic

extends Object
implements Parcelable
java.lang.Object
   ↳ com.ardic.android.parcelables.WifiConfigBasic

Class Overview

Implementation of Parcelable Interface for Wi-Fi Configuration Basic.

See also:

Summary

Nested Classes
enum WifiConfigBasic.SecurityType This enum is for Wi-Fi APN Security Types. 
[Expand]
Inherited Constants
From interface android.os.Parcelable
Fields
public static final Creator<WifiConfigBasic> CREATOR
Public Constructors
WifiConfigBasic(String ssid, String psk, WifiConfigBasic.SecurityType securityType, boolean hidden)
Constructor method.
Public Methods
int describeContents()
boolean equals(Object o)
int getNetworkId()
Returns Wi-Fi APN network ID.
String getPsk()
Returns Wi-Fi APN Preshared key.
WifiConfigBasic.SecurityType getSecurityType()
Returns Wi-Fi APN security type
String getSsid()
Returns The network's SSID.
int hashCode()
boolean isHidden()
Gets Wi-Fi APN Hidden attribute
void setHidden(boolean hidden)
Sets Wi-Fi APN Hidden attribute
void setPsk(String psk)
void setSecurityType(WifiConfigBasic.SecurityType securityType)
Sets Wi-Fi APN Security Type.
void setSsid(String ssid)
Sets The network's SSID.
void writeToParcel(Parcel dest, int flags)
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Fields

public static final Creator<WifiConfigBasic> CREATOR

Added in API level 1

Public Constructors

public WifiConfigBasic (String ssid, String psk, WifiConfigBasic.SecurityType securityType, boolean hidden)

Added in API level 1

Constructor method.

Parameters
ssid String: Wi-Fi APN SSID
psk String: Wi-Fi APN Preshared Key.
securityType WifiConfigBasic.SecurityType: Wi-Fi APN Security Type

Public Methods

public int describeContents ()

Added in API level 1

Returns
int

public boolean equals (Object o)

Parameters
o Object
Returns
boolean

public int getNetworkId ()

Added in API level 1

Returns Wi-Fi APN network ID.

Returns
int netId Wi-Fi Network ID.

public String getPsk ()

Added in API level 1

Returns Wi-Fi APN Preshared key. When the value of this key is read, the actual key is not returned, just a "*" if the key has a value, or the null string otherwise.

Returns
String the psk. Wi-Fi APN Preshared key.

public WifiConfigBasic.SecurityType getSecurityType ()

Added in API level 1

Returns Wi-Fi APN security type

Returns
WifiConfigBasic.SecurityType Wi-Fi APN security type

public String getSsid ()

Added in API level 1

Returns The network's SSID.

Returns
String ssid Wi-Fi SSID

public int hashCode ()

Returns
int

public boolean isHidden ()

Added in API level 1

Gets Wi-Fi APN Hidden attribute

Returns
boolean the mHidden

public void setHidden (boolean hidden)

Added in API level 1

Sets Wi-Fi APN Hidden attribute

Parameters
hidden boolean: the mHidden to set

public void setPsk (String psk)

Added in API level 1

Parameters
psk String: the psk to set. Password must be an ASCII string enclosed in double quotation marks (e.g., "abcdef").

public void setSecurityType (WifiConfigBasic.SecurityType securityType)

Added in API level 1

Sets Wi-Fi APN Security Type.

Parameters
securityType WifiConfigBasic.SecurityType: SecurityType of Wi-Fi APN

public void setSsid (String ssid)

Added in API level 1

Sets The network's SSID.

Parameters
ssid String: Wi-Fi APN SSID

public void writeToParcel (Parcel dest, int flags)

Added in API level 1

Parameters
dest Parcel
flags int