public static interface BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListener
Modifier and Type | Method and Description |
---|---|
void |
onConnectivityChanged(WifiP2pInfo p2pInfo,
NetworkInfo networkInfo,
WifiP2pGroup group)
Called on changes to the P2p-WiFi connectivity like connects, disconnects, ...
|
void |
onDiscoveryStarted()
Called when a discovery for WifiDirect devices was started.
|
void |
onDiscoveryStopped()
Called when a discovery for WifiDirect devices was stopped/finished.
|
void |
onListOfPeersChanged(WifiP2pDeviceList deviceList)
Called when the list of CURRENTLY AVAILBALE devices changed.
|
void |
onP2PWifiDisabled()
Called when the P2PWifiManager's state changed to disabled
|
void |
onP2PWifiEnabled()
Called when the P2PWifiManager's state changed to enabled
|
void onP2PWifiEnabled()
void onP2PWifiDisabled()
void onDiscoveryStarted()
void onDiscoveryStopped()
void onListOfPeersChanged(WifiP2pDeviceList deviceList)
deviceList
- the list of currently available devicesvoid onConnectivityChanged(WifiP2pInfo p2pInfo, NetworkInfo networkInfo, WifiP2pGroup group)
p2pInfo
- the p2p2 info containing group owner state, group owner ip, ...networkInfo
- the network informationgroup
- the group of which the connectivity changed