Class WiFiDirectPeer
java.lang.Object
com.codename1.io.wifi.WiFiDirectPeer
One peer discovered by
WiFiDirect.startDiscovery(...). Immutable.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intDiscovery state: peer has not been contacted.static final intDiscovery state: pairing established.static final intDiscovery state: peer transitioned out of range or refused pairing.static final intDiscovery state: pairing in progress.static final intDiscovery state: peer no longer responding to discovery probes. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionStable peer identifier (MAC address on Android).User-visible device name (e.g. "Pixel 9").intgetState()One of theSTATE_*constants.
-
Field Details
-
STATE_AVAILABLE
public static final int STATE_AVAILABLEDiscovery state: peer has not been contacted.- See Also:
-
STATE_INVITED
public static final int STATE_INVITEDDiscovery state: pairing in progress.- See Also:
-
STATE_CONNECTED
public static final int STATE_CONNECTEDDiscovery state: pairing established.- See Also:
-
STATE_FAILED
public static final int STATE_FAILEDDiscovery state: peer transitioned out of range or refused pairing.- See Also:
-
STATE_UNAVAILABLE
public static final int STATE_UNAVAILABLEDiscovery state: peer no longer responding to discovery probes.- See Also:
-
-
Constructor Details
-
WiFiDirectPeer
-
-
Method Details
-
getDeviceName
User-visible device name (e.g. "Pixel 9"). -
getDeviceAddress
Stable peer identifier (MAC address on Android). -
getState
public int getState()One of theSTATE_*constants.
-