WifiP2pDnsSdServiceRequest
open class WifiP2pDnsSdServiceRequest : WifiP2pServiceRequest
kotlin.Any | ||
↳ | android.net.wifi.p2p.nsd.WifiP2pServiceRequest | |
↳ | android.net.wifi.p2p.nsd.WifiP2pDnsSdServiceRequest |
A class for creating a Bonjour service discovery request for use with WifiP2pManager.addServiceRequest
and WifiP2pManager.removeServiceRequest
{@see WifiP2pManager} {@see WifiP2pServiceRequest} {@see WifiP2pUpnpServiceRequest}
Summary
Inherited constants | |
---|---|
Public methods | |
---|---|
open static WifiP2pDnsSdServiceRequest! |
Create a service discovery request to search all Bonjour services. |
open static WifiP2pDnsSdServiceRequest! |
newInstance(serviceType: String!) Create a service discovery to search for Bonjour services with the specified service type. |
open static WifiP2pDnsSdServiceRequest! |
newInstance(instanceName: String!, serviceType: String!) Create a service discovery request to get the TXT data from the specified Bonjour service. |
Inherited functions | |
---|---|
Public methods
newInstance
open static fun newInstance(): WifiP2pDnsSdServiceRequest!
Create a service discovery request to search all Bonjour services.
Return | |
---|---|
WifiP2pDnsSdServiceRequest! |
service request for Bonjour. |
newInstance
open static fun newInstance(serviceType: String!): WifiP2pDnsSdServiceRequest!
Create a service discovery to search for Bonjour services with the specified service type.
Parameters | |
---|---|
serviceType |
String!: service type. Cannot be null "_afpovertcp._tcp."(Apple File Sharing over TCP) "_ipp._tcp" (IP Printing over TCP) "_http._tcp" (http service) |
Return | |
---|---|
WifiP2pDnsSdServiceRequest! |
service request for DnsSd. |
newInstance
open static fun newInstance(
instanceName: String!,
serviceType: String!
): WifiP2pDnsSdServiceRequest!
Create a service discovery request to get the TXT data from the specified Bonjour service.
Parameters | |
---|---|
instanceName |
String!: instance name. Cannot be null. "MyPrinter" |
serviceType |
String!: service type. Cannot be null. e.g) "_afpovertcp._tcp"(Apple File Sharing over TCP) "_ipp._tcp" (IP Printing over TCP) |
Return | |
---|---|
WifiP2pDnsSdServiceRequest! |
service request for Bonjour. |