Stay organized with collections
Save and categorize content based on your preferences.
NsdManager.DiscoveryListener
public
static
interface
NsdManager.DiscoveryListener
| android.net.nsd.NsdManager.DiscoveryListener
|
Interface for callback invocation for service discovery
Summary
Public methods
onDiscoveryStarted
public abstract void onDiscoveryStarted (String serviceType)
| Parameters |
serviceType |
String |
onDiscoveryStopped
public abstract void onDiscoveryStopped (String serviceType)
| Parameters |
serviceType |
String |
onServiceFound
public abstract void onServiceFound (NsdServiceInfo serviceInfo)
| Parameters |
serviceInfo |
NsdServiceInfo |
onServiceLost
public abstract void onServiceLost (NsdServiceInfo serviceInfo)
| Parameters |
serviceInfo |
NsdServiceInfo |
onStartDiscoveryFailed
public abstract void onStartDiscoveryFailed (String serviceType,
int errorCode)
| Parameters |
serviceType |
String |
errorCode |
int |
onStopDiscoveryFailed
public abstract void onStopDiscoveryFailed (String serviceType,
int errorCode)
| Parameters |
serviceType |
String |
errorCode |
int |
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 2026-12-04 UTC.
[null,null,["Last updated 2026-12-04 UTC."],[],[]]