MpnDeviceListener class
Interface to be implemented to receive MPN device events including registration, suspension/resume and status change.
Events for these listeners are dispatched by a different thread than the one that generates them. This means that, upon reception of an event, it is possible that the internal state of the client has changed. On the other hand, all the notifications for a single LightstreamerClient, including notifications to ClientListener, SubscriptionListener, ClientMessageListener, MpnDeviceListener and MpnSubscriptionListener will be dispatched by the same thread.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
onListenEnd(
) → void - Event handler called when the MpnDeviceListener instance is removed from an MPN device object through MpnDevice.removeListener.
-
onListenStart(
) → void - Event handler called when the MpnDeviceListener instance is added to an MPN device object through MpnDevice.addListener.
-
onRegistered(
) → void - Event handler called when an MPN device object has been successfully registered on the server's MPN Module.
-
onRegistrationFailed(
int errorCode, String errorMessage) → void - Event handler called when the server notifies an error while registering an MPN device object.
-
onResumed(
) → void - Event handler called when an MPN device object has been resumed on the server's MPN Module.
-
onStatusChanged(
String status, int timestamp) → void - Event handler called when the server notifies that an MPN device changed its status.
-
onSubscriptionsUpdated(
) → void - Event handler called when the server notifies that the list of MPN subscription associated with an MPN device has been updated.
-
onSuspended(
) → void - Event handler called when an MPN device object has been suspended on the server's MPN Module.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited