Added in API level 16

RegistrationListener


interface RegistrationListener
android.net.nsd.NsdManager.RegistrationListener

Interface for callback invocation for service registration

Summary

Public methods
abstract Unit
onRegistrationFailed(serviceInfo: NsdServiceInfo!, errorCode: Int)

abstract Unit

abstract Unit

abstract Unit
onUnregistrationFailed(serviceInfo: NsdServiceInfo!, errorCode: Int)

Public methods

onRegistrationFailed

Added in API level 16
abstract fun onRegistrationFailed(
    serviceInfo: NsdServiceInfo!,
    errorCode: Int
): Unit

onServiceRegistered

Added in API level 16
abstract fun onServiceRegistered(serviceInfo: NsdServiceInfo!): Unit

onServiceUnregistered

Added in API level 16
abstract fun onServiceUnregistered(serviceInfo: NsdServiceInfo!): Unit

onUnregistrationFailed

Added in API level 16
abstract fun onUnregistrationFailed(
    serviceInfo: NsdServiceInfo!,
    errorCode: Int
): Unit