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

ERRORS

Throws the following errors:

INVALID_STATE:
if callback could not be added

RETURN VALUES

None.

EXAMPLES

None.