|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.nokia.mid.network.WLANState
public final class WLANState
WLANState provides WLAN change notification to client which implements WLANStateListener interface
Copyright (c) 2012 Nokia Mobile Phones
Code Snippet 1:
// This is a sample code to get the state of the Wlan
WLANState.getState();
Code Snippet 2:
// This is a sample code to subscribe state change event of Wlan
try{
WLANState.subscribeListener(this);
} catch (Exception e) {
}
Code Snippet 3:
// This is a sample code to implement a WLANStateListener in a class which implements this interface
public void WLANStateChanged(int state) {
form.append("recevie wlan state: " + state);
}
Field Summary | |
---|---|
static int |
WLAN_STATE_CONNECTED
Constant for WLAN connected state. |
static int |
WLAN_STATE_NOT_CONNECTED
Constant for WLAN not connected state. |
Method Summary | |
---|---|
static int |
getState()
get WLAN state. |
static void |
subscribeListener(WLANStateListener listener)
Subscribe network state listener. |
static void |
unSubscribeListener(WLANStateListener listener)
unSubscribe network state listener. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int WLAN_STATE_CONNECTED
Constant for WLAN connected state.
WLAN_STATE_CONNECTED has the value 0x01.
public static final int WLAN_STATE_NOT_CONNECTED
Constant for WLAN not connected state.
WLAN_STATE_NOTCONNECTED has the value 0x02.
Method Detail |
---|
public static void subscribeListener(WLANStateListener listener)
listener
- the object that will receive the network state event.public static void unSubscribeListener(WLANStateListener listener)
listener
- the object that is receiving the network state event.public static int getState()
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |