android.net.wifi.p2p
Class WifiP2pManager
java.lang.Object
android.net.wifi.p2p.WifiP2pManager
public class WifiP2pManager
- extends Object
|
Method Summary |
void |
addLocalService(WifiP2pManager.Channel c,
WifiP2pServiceInfo servInfo,
WifiP2pManager.ActionListener listener)
|
void |
addServiceRequest(WifiP2pManager.Channel c,
WifiP2pServiceRequest req,
WifiP2pManager.ActionListener listener)
|
void |
cancelConnect(WifiP2pManager.Channel c,
WifiP2pManager.ActionListener listener)
|
void |
clearLocalServices(WifiP2pManager.Channel c,
WifiP2pManager.ActionListener listener)
|
void |
clearServiceRequests(WifiP2pManager.Channel c,
WifiP2pManager.ActionListener listener)
|
void |
connect(WifiP2pManager.Channel c,
WifiP2pConfig config,
WifiP2pManager.ActionListener listener)
|
void |
createGroup(WifiP2pManager.Channel c,
WifiP2pManager.ActionListener listener)
|
void |
discoverPeers(WifiP2pManager.Channel c,
WifiP2pManager.ActionListener listener)
|
void |
discoverServices(WifiP2pManager.Channel c,
WifiP2pManager.ActionListener listener)
|
WifiP2pManager.Channel |
initialize(Context srcContext,
Looper srcLooper,
WifiP2pManager.ChannelListener listener)
|
void |
removeGroup(WifiP2pManager.Channel c,
WifiP2pManager.ActionListener listener)
|
void |
removeLocalService(WifiP2pManager.Channel c,
WifiP2pServiceInfo servInfo,
WifiP2pManager.ActionListener listener)
|
void |
removeServiceRequest(WifiP2pManager.Channel c,
WifiP2pServiceRequest req,
WifiP2pManager.ActionListener listener)
|
void |
requestConnectionInfo(WifiP2pManager.Channel c,
WifiP2pManager.ConnectionInfoListener listener)
|
void |
requestGroupInfo(WifiP2pManager.Channel c,
WifiP2pManager.GroupInfoListener listener)
|
void |
requestPeers(WifiP2pManager.Channel c,
WifiP2pManager.PeerListListener listener)
|
void |
setDnsSdResponseListeners(WifiP2pManager.Channel c,
WifiP2pManager.DnsSdServiceResponseListener servListener,
WifiP2pManager.DnsSdTxtRecordListener txtListener)
|
void |
setServiceResponseListener(WifiP2pManager.Channel c,
WifiP2pManager.ServiceResponseListener listener)
|
void |
setUpnpServiceResponseListener(WifiP2pManager.Channel c,
WifiP2pManager.UpnpServiceResponseListener listener)
|
void |
stopPeerDiscovery(WifiP2pManager.Channel c,
WifiP2pManager.ActionListener listener)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WIFI_P2P_STATE_CHANGED_ACTION
public static final String WIFI_P2P_STATE_CHANGED_ACTION
- See Also:
- Constant Field Values
EXTRA_WIFI_STATE
public static final String EXTRA_WIFI_STATE
- See Also:
- Constant Field Values
WIFI_P2P_STATE_DISABLED
public static final int WIFI_P2P_STATE_DISABLED
- See Also:
- Constant Field Values
WIFI_P2P_STATE_ENABLED
public static final int WIFI_P2P_STATE_ENABLED
- See Also:
- Constant Field Values
WIFI_P2P_CONNECTION_CHANGED_ACTION
public static final String WIFI_P2P_CONNECTION_CHANGED_ACTION
- See Also:
- Constant Field Values
EXTRA_WIFI_P2P_INFO
public static final String EXTRA_WIFI_P2P_INFO
- See Also:
- Constant Field Values
EXTRA_NETWORK_INFO
public static final String EXTRA_NETWORK_INFO
- See Also:
- Constant Field Values
WIFI_P2P_PEERS_CHANGED_ACTION
public static final String WIFI_P2P_PEERS_CHANGED_ACTION
- See Also:
- Constant Field Values
WIFI_P2P_DISCOVERY_CHANGED_ACTION
public static final String WIFI_P2P_DISCOVERY_CHANGED_ACTION
- See Also:
- Constant Field Values
EXTRA_DISCOVERY_STATE
public static final String EXTRA_DISCOVERY_STATE
- See Also:
- Constant Field Values
WIFI_P2P_DISCOVERY_STOPPED
public static final int WIFI_P2P_DISCOVERY_STOPPED
- See Also:
- Constant Field Values
WIFI_P2P_DISCOVERY_STARTED
public static final int WIFI_P2P_DISCOVERY_STARTED
- See Also:
- Constant Field Values
WIFI_P2P_THIS_DEVICE_CHANGED_ACTION
public static final String WIFI_P2P_THIS_DEVICE_CHANGED_ACTION
- See Also:
- Constant Field Values
EXTRA_WIFI_P2P_DEVICE
public static final String EXTRA_WIFI_P2P_DEVICE
- See Also:
- Constant Field Values
ERROR
public static final int ERROR
- See Also:
- Constant Field Values
P2P_UNSUPPORTED
public static final int P2P_UNSUPPORTED
- See Also:
- Constant Field Values
BUSY
public static final int BUSY
- See Also:
- Constant Field Values
NO_SERVICE_REQUESTS
public static final int NO_SERVICE_REQUESTS
- See Also:
- Constant Field Values
initialize
public WifiP2pManager.Channel initialize(Context srcContext,
Looper srcLooper,
WifiP2pManager.ChannelListener listener)
discoverPeers
public void discoverPeers(WifiP2pManager.Channel c,
WifiP2pManager.ActionListener listener)
stopPeerDiscovery
public void stopPeerDiscovery(WifiP2pManager.Channel c,
WifiP2pManager.ActionListener listener)
connect
public void connect(WifiP2pManager.Channel c,
WifiP2pConfig config,
WifiP2pManager.ActionListener listener)
cancelConnect
public void cancelConnect(WifiP2pManager.Channel c,
WifiP2pManager.ActionListener listener)
createGroup
public void createGroup(WifiP2pManager.Channel c,
WifiP2pManager.ActionListener listener)
removeGroup
public void removeGroup(WifiP2pManager.Channel c,
WifiP2pManager.ActionListener listener)
addLocalService
public void addLocalService(WifiP2pManager.Channel c,
WifiP2pServiceInfo servInfo,
WifiP2pManager.ActionListener listener)
removeLocalService
public void removeLocalService(WifiP2pManager.Channel c,
WifiP2pServiceInfo servInfo,
WifiP2pManager.ActionListener listener)
clearLocalServices
public void clearLocalServices(WifiP2pManager.Channel c,
WifiP2pManager.ActionListener listener)
setServiceResponseListener
public void setServiceResponseListener(WifiP2pManager.Channel c,
WifiP2pManager.ServiceResponseListener listener)
setDnsSdResponseListeners
public void setDnsSdResponseListeners(WifiP2pManager.Channel c,
WifiP2pManager.DnsSdServiceResponseListener servListener,
WifiP2pManager.DnsSdTxtRecordListener txtListener)
setUpnpServiceResponseListener
public void setUpnpServiceResponseListener(WifiP2pManager.Channel c,
WifiP2pManager.UpnpServiceResponseListener listener)
discoverServices
public void discoverServices(WifiP2pManager.Channel c,
WifiP2pManager.ActionListener listener)
addServiceRequest
public void addServiceRequest(WifiP2pManager.Channel c,
WifiP2pServiceRequest req,
WifiP2pManager.ActionListener listener)
removeServiceRequest
public void removeServiceRequest(WifiP2pManager.Channel c,
WifiP2pServiceRequest req,
WifiP2pManager.ActionListener listener)
clearServiceRequests
public void clearServiceRequests(WifiP2pManager.Channel c,
WifiP2pManager.ActionListener listener)
requestPeers
public void requestPeers(WifiP2pManager.Channel c,
WifiP2pManager.PeerListListener listener)
requestConnectionInfo
public void requestConnectionInfo(WifiP2pManager.Channel c,
WifiP2pManager.ConnectionInfoListener listener)
requestGroupInfo
public void requestGroupInfo(WifiP2pManager.Channel c,
WifiP2pManager.GroupInfoListener listener)
Copyright © 2008-2012. All Rights Reserved.