setListener

fun setListener(listener: DataTransport.Listener?, executor: Executor?)

Set the listener to be used for notification.

This may be called multiple times but only one listener is active at one time.

Parameters

listener

the listener or null to stop listening.

executor

a Executor to do the call in or null if listener is null.

Throws

if Executor is null for a non-null listener.