public class BlaubotWifiDirectEventListenerAdapter extends java.lang.Object implements BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListener
| Constructor and Description |
|---|
BlaubotWifiDirectEventListenerAdapter() |
| 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
|
public BlaubotWifiDirectEventListenerAdapter()
public void onP2PWifiEnabled()
BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListeneronP2PWifiEnabled in interface BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListenerpublic void onP2PWifiDisabled()
BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListeneronP2PWifiDisabled in interface BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListenerpublic void onDiscoveryStarted()
BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListeneronDiscoveryStarted in interface BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListenerpublic void onDiscoveryStopped()
BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListeneronDiscoveryStopped in interface BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListenerpublic void onListOfPeersChanged(WifiP2pDeviceList deviceList)
BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListeneronListOfPeersChanged in interface BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListenerdeviceList - the list of currently available devicespublic void onConnectivityChanged(WifiP2pInfo p2pInfo,
NetworkInfo networkInfo,
WifiP2pGroup group)
BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListeneronConnectivityChanged in interface BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListenerp2pInfo - the p2p2 info containing group owner state, group owner ip, ...networkInfo - the network informationgroup - the group of which the connectivity changed