public interface BoxAPIConnectionListener
| Modifier and Type | Method and Description |
|---|---|
void |
onError(BoxAPIConnection api,
BoxAPIException error)
Called when an error occurs while attempting to refresh the Box API connection's tokens.
|
void |
onRefresh(BoxAPIConnection api)
Called when the Box API connection refreshes its tokens.
|
void onRefresh(BoxAPIConnection api)
The provided connection is guaranteed to not be auto-refreshed or modified by another listener until this method returns.
api - the API connection that was refreshed.void onError(BoxAPIConnection api, BoxAPIException error)
The provided connection is guaranteed to not be auto-refreshed or modified by another listener until this method returns.
api - the API connection that encountered an error.error - the error that occurred.