OnContextAvailableListener

interface OnContextAvailableListener


Listener for receiving a callback at the first moment a Context is made available to the ContextAware class.

See also
addOnContextAvailableListener

ContextAware#addOnContextAvailableListener(OnContextAvailableListener)

Summary

Public methods

abstract @NonNull void

Called when the ContextAware object this listener was added to is associated to a Context.

Public methods

onContextAvailable

@NonNull
public abstract void onContextAvailable(@NonNull Context context)

Called when the ContextAware object this listener was added to is associated to a Context.

Parameters
@NonNull Context context

The Context the ContextAware object is now associated with.