public
static
interface
NsdManager.DiscoveryListener
android.net.nsd.NsdManager.DiscoveryListener |
Interface for callback invocation for service discovery
Public methods | |
---|---|
abstract
void
|
onDiscoveryStarted(String serviceType)
|
abstract
void
|
onDiscoveryStopped(String serviceType)
|
abstract
void
|
onServiceFound(NsdServiceInfo serviceInfo)
|
abstract
void
|
onServiceLost(NsdServiceInfo serviceInfo)
|
abstract
void
|
onStartDiscoveryFailed(String serviceType, int errorCode)
|
abstract
void
|
onStopDiscoveryFailed(String serviceType, int errorCode)
|
void onDiscoveryStarted (String serviceType)
Parameters | |
---|---|
serviceType |
String
|
void onDiscoveryStopped (String serviceType)
Parameters | |
---|---|
serviceType |
String
|
void onServiceFound (NsdServiceInfo serviceInfo)
Parameters | |
---|---|
serviceInfo |
NsdServiceInfo
|
void onServiceLost (NsdServiceInfo serviceInfo)
Parameters | |
---|---|
serviceInfo |
NsdServiceInfo
|
void onStartDiscoveryFailed (String serviceType, int errorCode)
Parameters | |
---|---|
serviceType |
String
|
errorCode |
int
|
void onStopDiscoveryFailed (String serviceType, int errorCode)
Parameters | |
---|---|
serviceType |
String
|
errorCode |
int
|