MdnsScanner.addMdnsResultReceiver()

DESCRIPTION

Add an mDNS result callback, invoked when an mDNS result is retrieved. Scan must be started separately (with start()).

DECLARATION

    public func addMdnsResultReceiver(_ cb: MdnsResultReceiver) 

PARAMETERS

cb:
An implementation of the MdnsResultReceiver protocol

THROWS ERRORS

INVALID_STATE:
if callback could not be added