Added in API level 16
DiscoveryListener
interface DiscoveryListener
android.net.nsd.NsdManager.DiscoveryListener |
Interface for callback invocation for service discovery
Summary
Public methods | |
---|---|
abstract Unit |
onDiscoveryStarted(serviceType: String!) |
abstract Unit |
onDiscoveryStopped(serviceType: String!) |
abstract Unit |
onServiceFound(serviceInfo: NsdServiceInfo!) |
abstract Unit |
onServiceLost(serviceInfo: NsdServiceInfo!) |
abstract Unit |
onStartDiscoveryFailed(serviceType: String!, errorCode: Int) |
abstract Unit |
onStopDiscoveryFailed(serviceType: String!, errorCode: Int) |
Public methods
onDiscoveryStarted
Added in API level 16
abstract fun onDiscoveryStarted(serviceType: String!): Unit
onDiscoveryStopped
Added in API level 16
abstract fun onDiscoveryStopped(serviceType: String!): Unit
onServiceFound
Added in API level 16
abstract fun onServiceFound(serviceInfo: NsdServiceInfo!): Unit
onStartDiscoveryFailed
Added in API level 16
abstract fun onStartDiscoveryFailed(
serviceType: String!,
errorCode: Int
): Unit
onStopDiscoveryFailed
Added in API level 16
abstract fun onStopDiscoveryFailed(
serviceType: String!,
errorCode: Int
): Unit