public class NetInfo
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
java.lang.String |
addr
device's addr at this network.
|
static int |
Bluetooth |
static int |
Cloud |
static <any> |
CREATOR |
int |
encrypt
encrypt type (WEP, WPA, etc.)
|
boolean |
hidden
is the network hidden or explicit.
|
byte[] |
info
general network info.
|
java.lang.String |
intfName
local interface name for this device.
|
boolean |
mcast
does this network support multicast or not.
|
static int |
Mobile |
java.lang.String |
name
network name (SSID, etc.)
|
static int |
NET_TYPES |
static int |
NoNet |
static int |
NoPass |
static int |
Other |
java.lang.String |
pass
encrypt passwd
|
int |
type
network type (wifi, direct, hotspot, etc.)
|
static int |
WEP |
static int |
WiFi |
static int |
WiFiDirect |
static int |
WiFiHotspot |
static int |
WPA |
Constructor and Description |
---|
NetInfo() |
NetInfo(int t,
java.lang.String n,
int enc,
java.lang.String p,
boolean h,
byte[] i,
java.lang.String in,
java.lang.String a,
boolean m) |
NetInfo(Parcel in) |
Modifier and Type | Method and Description |
---|---|
int |
describeContents() |
static java.lang.String |
NetEncryptionName(int t) |
static java.lang.String |
NetTypeName(int t) |
void |
readFromParcel(Parcel in) |
java.lang.String |
toString() |
void |
writeToParcel(Parcel out,
int flags) |
public static final int NoNet
public static final int WiFi
public static final int WiFiDirect
public static final int WiFiHotspot
public static final int Bluetooth
public static final int Mobile
public static final int Cloud
public static final int Other
public static final int NET_TYPES
public static final int NoPass
public static final int WPA
public static final int WEP
public int type
public java.lang.String name
public int encrypt
public java.lang.String pass
public boolean hidden
public byte[] info
public java.lang.String intfName
public java.lang.String addr
public boolean mcast
public static final <any> CREATOR
public NetInfo(int t, java.lang.String n, int enc, java.lang.String p, boolean h, byte[] i, java.lang.String in, java.lang.String a, boolean m)
public NetInfo()
public NetInfo(Parcel in)
public static final java.lang.String NetTypeName(int t)
public static final java.lang.String NetEncryptionName(int t)
public java.lang.String toString()
toString
in class java.lang.Object
public int describeContents()
public void readFromParcel(Parcel in)
public void writeToParcel(Parcel out, int flags)