gsdsdk / com.gsd.software.sdk.netconnector.nsdmanager / NsdDiscover

NsdDiscover

class NsdDiscover :NsdServiceListener

Created by Maksim Shumko on 3/18/2020

Constructors

Name Summary
<init> NsdDiscover(nsdManager:NsdManager, serviceName:String, serviceType:String)
Created by Maksim Shumko on 3/18/2020

Functions

Name Summary
onDiscoveryStarted fun onDiscoveryStarted(listener: (regType:String) ->Unit):Unit
onDiscoveryStopped fun onDiscoveryStopped(listener: (serviceType:String) ->Unit):Unit
onResolveFailed fun onResolveFailed(listener: (serviceInfo:NsdServiceInfo, errorCode:Int) ->Unit):Unit
onServiceFound fun onServiceFound(listener: (service:NsdServiceInfo) ->Unit):Unit
onServiceLost fun onServiceLost(listener: (service:NsdServiceInfo) ->Unit):Unit
onServiceResolved fun onServiceResolved(listener: (serviceInfo:NsdServiceInfo) ->Unit):Unit
onStartDiscoveryFailed fun onStartDiscoveryFailed(listener: (serviceType:String, errorCode:Int) ->Unit):Unit
onStopDiscoveryFailed fun onStopDiscoveryFailed(listener: (serviceType:String, errorCode:Int) ->Unit):Unit
start fun start():Unit
stop fun stop():Unit