Code example for NsdManager

Methods: unregisterService

0
	public void stopDiscovery() { 
        this.nsdManager.stopServiceDiscovery(this.discoveryListener);
    } 
     
    public void unregisterService() { 
    	this.nsdManager.unregisterService(this.registrationListener);
    } 
     
    public NsdServiceInfo getChosenServiceInfo() {
        return mService;
    } 
     
    public void tearDown() { 
    	if (registrationListener != null) {
    		if (serviceRegistered) {
    			this.nsdManager.unregisterService(registrationListener);
    		} 
    	} 
    	if (discoveryListener != null) {
    		if (discoveryStarted) {