public static interface

A4S.Callback

com.ad4screen.sdk.A4S.Callback<T>

Class Overview

Callback used to return an operation result 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(T result)
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 : Connection error 1 : Invalid parameters
errorMessage Message for this error

public abstract void onResult (T result)

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

Parameters
result Result returned by the long-running operations