AmqpsIotHubConnection.setListener(IotHubListener listener) 方法

定义

Sets a listener into the Transport Connection object. This listener updates the Transport layer of connection status updates, message arrivals, and message acknowledgements

public void setListener(IotHubListener listener)

参数

listener
IotHubListener

the listener for connection status updates, message arrivals, and message acknowledgements

例外

TransportException

If the provided listener is null

替代

适用于