MigratoryDataListener

The implementation of this interface will handle the messages received from the server for the subscribed subjects as well as various status notifications. More…

Public Functions

Name
void onMessage(MigratoryDataMessage message)
This method handles the real-time messages received from a MigratoryData server for the subscribed subjects.
void onStatus(String type, String info)
This method handles the status notifications.

Detailed Description

class MigratoryDataListener;

The implementation of this interface will handle the messages received from the server for the subscribed subjects as well as various status notifications.

Use the API method MigratoryDataClient.setListener() to register your listener implementation.

Public Functions Documentation

function onMessage

void onMessage(
    MigratoryDataMessage message
)

This method handles the real-time messages received from a MigratoryData server for the subscribed subjects.

Parameters:

function onStatus

void onStatus(
    String type,
    String info
)

This method handles the status notifications.

Parameters:

  • status The type of the status notification (see the possible values above).
  • info The detail information of the status notification.

The possible values of the status parameter are: