public static interface

A4S.MessageCallback

com.ad4screen.sdk.A4S.MessageCallback

Class Overview

Callback used to return an Inbox Message asynchronously

Summary

Public Methods
abstract void onError(int error, String errorMessage)
Function called if an error happened during the long-running operations
abstract void onResult(Message result, int index)
Function to be called at the end of the long-running operation.

Public Methods

public abstract void onError (int error, String errorMessage)

Function called if an error happened during the long-running operations

Parameters
error Code of the error 0 : Error while downloading message
errorMessage Message for this error

public abstract void onResult (Message result, int index)

Function to be called at the end of the long-running operation.

Parameters
result Result returned by the long-running operations
index Index of this message in this inbox