public class WifiP2pUpnpServiceRequest
extends WifiP2pServiceRequest
java.lang.Object | ||
↳ | android.net.wifi.p2p.nsd.WifiP2pServiceRequest | |
↳ | android.net.wifi.p2p.nsd.WifiP2pUpnpServiceRequest |
用于创建Upnp服务发现请求的类,用于 addServiceRequest(WifiP2pManager.Channel, WifiP2pServiceRequest, WifiP2pManager.ActionListener)
和 removeServiceRequest(WifiP2pManager.Channel, WifiP2pServiceRequest, WifiP2pManager.ActionListener)
Inherited constants |
---|
From interface android.os.Parcelable
|
Public methods |
|
---|---|
static WifiP2pUpnpServiceRequest |
newInstance() 创建服务发现请求以搜索所有UPnP服务。 |
static WifiP2pUpnpServiceRequest |
newInstance(String st) 创建服务发现请求以搜索指定的UPnP服务。 |
Inherited methods |
|
---|---|
From class android.net.wifi.p2p.nsd.WifiP2pServiceRequest
|
|
From class java.lang.Object
|
|
From interface android.os.Parcelable
|
WifiP2pUpnpServiceRequest newInstance ()
创建服务发现请求以搜索所有UPnP服务。
Returns | |
---|---|
WifiP2pUpnpServiceRequest |
service request for UPnP. |
WifiP2pUpnpServiceRequest newInstance (String st)
创建服务发现请求以搜索指定的UPnP服务。
Parameters | |
---|---|
st |
String : ssdp search target. Cannot be null.e.g )
|
Returns | |
---|---|
WifiP2pUpnpServiceRequest |
service request for UPnP. |