Android APIs
Added in API level 16
public static interface

NsdManager.DiscoveryListener

android.net.nsd.NsdManager.DiscoveryListener

Class Overview

Interface for callback invocation for service discovery

Summary

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)

Public Methods

public abstract void onDiscoveryStarted (String serviceType)

Added in API level 16

Parameters
serviceType

public abstract void onDiscoveryStopped (String serviceType)

Added in API level 16

Parameters
serviceType

public abstract void onServiceFound (NsdServiceInfo serviceInfo)

Added in API level 16

Parameters
serviceInfo

public abstract void onServiceLost (NsdServiceInfo serviceInfo)

Added in API level 16

Parameters
serviceInfo

public abstract void onStartDiscoveryFailed (String serviceType, int errorCode)

Added in API level 16

Parameters
serviceType
errorCode

public abstract void onStopDiscoveryFailed (String serviceType, int errorCode)

Added in API level 16

Parameters
serviceType
errorCode