Save the date! Android Dev Summit is coming to Sunnyvale, CA on Oct 23-24, 2019.

Resolver

interface Resolver<T : Any!>
androidx.concurrent.futures.CallbackToFutureAdapter.Resolver

Called by getFuture.

Summary

Public methods
abstract Any?

Create your callback object and start whatever operations are required to trigger it here.

Public methods

attachCompleter

@Nullable abstract fun attachCompleter(@NonNull completer: CallbackToFutureAdapter.Completer<T>): Any?

Create your callback object and start whatever operations are required to trigger it here.

Parameters
completer CallbackToFutureAdapter.Completer<T>: Call one of the set methods on this object to complete the returned Future.
Return
Any?: an object to use as the human-readable description of what is expected to complete this future. In error cases, its toString() will be included in the message.