FRListener

interface FRListener<T>

A listener interface for receiving completion events from asynchronous operations.

The class that is interested in processing a completion event implements this interface, and the object created with that class is registered with the asynchronous operation, using the operation's setListener method. When the operation completes, that object's onSuccess or onException method is invoked.

Parameters

The type of the result.

Inheritors

Functions

Link copied to clipboard
abstract fun onException(e: Exception)

Invoked when an asynchronous operation fails.

Link copied to clipboard
abstract fun onSuccess(result: T)

Invoked when an asynchronous operation completes successfully.