NsdManager.RegistrationListener
public static interface NsdManager.RegistrationListener
android.net.nsd.NsdManager.RegistrationListener |
用于服务注册的回调调用接口
Summary
Public methods
onRegistrationFailed
void onRegistrationFailed (NsdServiceInfo serviceInfo,
int errorCode)
Parameters |
serviceInfo |
NsdServiceInfo
|
errorCode |
int
|
onServiceRegistered
void onServiceRegistered (NsdServiceInfo serviceInfo)
Parameters |
serviceInfo |
NsdServiceInfo
|
onServiceUnregistered
void onServiceUnregistered (NsdServiceInfo serviceInfo)
Parameters |
serviceInfo |
NsdServiceInfo
|
onUnregistrationFailed
void onUnregistrationFailed (NsdServiceInfo serviceInfo,
int errorCode)
Parameters |
serviceInfo |
NsdServiceInfo
|
errorCode |
int
|