android.net.nsd
Class NsdManager

java.lang.Object
  extended by android.net.nsd.NsdManager

public final class NsdManager
extends Object


Nested Class Summary
static interface NsdManager.DiscoveryListener
           
static interface NsdManager.RegistrationListener
           
static interface NsdManager.ResolveListener
           
 
Field Summary
static String ACTION_NSD_STATE_CHANGED
           
static String EXTRA_NSD_STATE
           
static int FAILURE_ALREADY_ACTIVE
           
static int FAILURE_INTERNAL_ERROR
           
static int FAILURE_MAX_LIMIT
           
static int NSD_STATE_DISABLED
           
static int NSD_STATE_ENABLED
           
static int PROTOCOL_DNS_SD
           
 
Method Summary
 void discoverServices(String serviceType, int protocolType, NsdManager.DiscoveryListener listener)
           
 void registerService(NsdServiceInfo serviceInfo, int protocolType, NsdManager.RegistrationListener listener)
           
 void resolveService(NsdServiceInfo serviceInfo, NsdManager.ResolveListener listener)
           
 void stopServiceDiscovery(NsdManager.DiscoveryListener listener)
           
 void unregisterService(NsdManager.RegistrationListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ACTION_NSD_STATE_CHANGED

public static final String ACTION_NSD_STATE_CHANGED
See Also:
Constant Field Values

EXTRA_NSD_STATE

public static final String EXTRA_NSD_STATE
See Also:
Constant Field Values

NSD_STATE_DISABLED

public static final int NSD_STATE_DISABLED
See Also:
Constant Field Values

NSD_STATE_ENABLED

public static final int NSD_STATE_ENABLED
See Also:
Constant Field Values

PROTOCOL_DNS_SD

public static final int PROTOCOL_DNS_SD
See Also:
Constant Field Values

FAILURE_INTERNAL_ERROR

public static final int FAILURE_INTERNAL_ERROR
See Also:
Constant Field Values

FAILURE_ALREADY_ACTIVE

public static final int FAILURE_ALREADY_ACTIVE
See Also:
Constant Field Values

FAILURE_MAX_LIMIT

public static final int FAILURE_MAX_LIMIT
See Also:
Constant Field Values
Method Detail

registerService

public void registerService(NsdServiceInfo serviceInfo,
                            int protocolType,
                            NsdManager.RegistrationListener listener)

unregisterService

public void unregisterService(NsdManager.RegistrationListener listener)

discoverServices

public void discoverServices(String serviceType,
                             int protocolType,
                             NsdManager.DiscoveryListener listener)

stopServiceDiscovery

public void stopServiceDiscovery(NsdManager.DiscoveryListener listener)

resolveService

public void resolveService(NsdServiceInfo serviceInfo,
                           NsdManager.ResolveListener listener)


Copyright © 2008-2012. All Rights Reserved.