public static interface

Megacool.OnEventsReceivedListener

co.megacool.megacool.Megacool.OnEventsReceivedListener

This interface is deprecated.
Extend EventListener instead.

Class Overview

Event listener used in start(Context, String, OnEventsReceivedListener). The onEventsReceived(List) method will be called on the same thread that start(Context, String) is called on.

Add onEventsReceived(List) to your start(Context, String, OnEventsReceivedListener) to receive a list of Event once the server responds. There are 3 types of events to handle:

Summary

Fields
public static final AtomicReference<Handler> handler This creates a Handler using the android.os.Looper of the thread that the callback is created on
Public Methods
abstract void onEventsReceived(List<Event> events)

Fields

public static final AtomicReference<Handler> handler

This creates a Handler using the android.os.Looper of the thread that the callback is created on

Public Methods

public abstract void onEventsReceived (List<Event> events)