NsdManager.DiscoveryListener
public static interface NsdManager.DiscoveryListener
android.net.nsd.NsdManager.DiscoveryListener |
用于服务发现的回调调用接口
Summary
Public methods
onDiscoveryStarted
void onDiscoveryStarted (String serviceType)
Parameters |
serviceType |
String
|
onDiscoveryStopped
void onDiscoveryStopped (String serviceType)
Parameters |
serviceType |
String
|
onServiceFound
void onServiceFound (NsdServiceInfo serviceInfo)
Parameters |
serviceInfo |
NsdServiceInfo
|
onServiceLost
void onServiceLost (NsdServiceInfo serviceInfo)
Parameters |
serviceInfo |
NsdServiceInfo
|
onStartDiscoveryFailed
void onStartDiscoveryFailed (String serviceType,
int errorCode)
Parameters |
serviceType |
String
|
errorCode |
int
|
onStopDiscoveryFailed
void onStopDiscoveryFailed (String serviceType,
int errorCode)
Parameters |
serviceType |
String
|
errorCode |
int
|