WifiP2pDnsSdServiceInfo
open class WifiP2pDnsSdServiceInfo : WifiP2pServiceInfo
A class for storing Bonjour service information that is advertised over a Wi-Fi peer-to-peer setup. {@see android.net.wifi.p2p.WifiP2pManager#addLocalService} {@see android.net.wifi.p2p.WifiP2pManager#removeLocalService} {@see WifiP2pServiceInfo} {@see WifiP2pUpnpServiceInfo}
Summary
Public methods
newInstance
open static fun newInstance(
instanceName: String!,
serviceType: String!,
txtMap: MutableMap<String!, String!>!
): WifiP2pDnsSdServiceInfo!
Create a Bonjour service information object.
Parameters |
instanceName |
String!: instance name. e.g) "MyPrinter" |
serviceType |
String!: service type. e.g) "_ipp._tcp" |
txtMap |
MutableMap<String!, String!>!: TXT record with key/value pair in a map confirming to format defined at http://files.dns-sd.org/draft-cheshire-dnsext-dns-sd.txt |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-02-10 UTC.
[null,null,["Last updated 2025-02-10 UTC."],[],[]]