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.IBlaubotWifiDirectEventListener
onP2PWifiEnabled
in interface BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListener
public void onP2PWifiDisabled()
BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListener
onP2PWifiDisabled
in interface BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListener
public void onDiscoveryStarted()
BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListener
onDiscoveryStarted
in interface BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListener
public void onDiscoveryStopped()
BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListener
onDiscoveryStopped
in interface BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListener
public void onListOfPeersChanged(WifiP2pDeviceList deviceList)
BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListener
onListOfPeersChanged
in interface BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListener
deviceList
- the list of currently available devicespublic void onConnectivityChanged(WifiP2pInfo p2pInfo, NetworkInfo networkInfo, WifiP2pGroup group)
BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListener
onConnectivityChanged
in interface BlaubotWifiP2PBroadcastReceiver.IBlaubotWifiDirectEventListener
p2pInfo
- the p2p2 info containing group owner state, group owner ip, ...networkInfo
- the network informationgroup
- the group of which the connectivity changed