Agora Interactive Whiteboard Java API Reference
Public Member Functions | List of all members
com.herewhite.sdk.AbstractRoomCallbacks Class Referenceabstract
Inheritance diagram for com.herewhite.sdk.AbstractRoomCallbacks:
com.herewhite.sdk.RoomCallbacks com.herewhite.sdk.RoomListener

Public Member Functions

void onPhaseChanged (RoomPhase phase)
 
void onDisconnectWithError (Exception e)
 
void onKickedWithReason (String reason)
 
void onRoomStateChanged (RoomState modifyState)
 
void onCanUndoStepsUpdate (long canUndoSteps)
 
void onCanRedoStepsUpdate (long canRedoSteps)
 
void onCatchErrorWhenAppendFrame (long userId, Exception error)
 
void onPhaseChanged (RoomPhase phase)
 
void onDisconnectWithError (Exception e)
 
void onKickedWithReason (String reason)
 
void onRoomStateChanged (RoomState modifyState)
 
void onCanUndoStepsUpdate (long canUndoSteps)
 
void onCanRedoStepsUpdate (long canRedoSteps)
 
void onCatchErrorWhenAppendFrame (long userId, Exception error)
 

Detailed Description

Created by buhe on 2018/8/12. The default (empty) implementation of the RoomCallbacks interface.

Deprecated:
This class is deprecated.

Member Function Documentation

◆ onPhaseChanged()

void com.herewhite.sdk.AbstractRoomCallbacks.onPhaseChanged ( RoomPhase  phase)

Occurs when the room connection state changes.

Parameters
phaseThe current connection state of the room. See RoomPhase.

Implements com.herewhite.sdk.RoomListener.

◆ onDisconnectWithError()

void com.herewhite.sdk.AbstractRoomCallbacks.onDisconnectWithError ( Exception  e)

Occurs when the SDK loses connection with the Interactive Whiteboard server.

Parameters
eAn error message.

Implements com.herewhite.sdk.RoomListener.

◆ onKickedWithReason()

void com.herewhite.sdk.AbstractRoomCallbacks.onKickedWithReason ( String  reason)

Occurs when the local user is removed from the live Interactive Whiteboard room.

Parameters
reasonThe reason why the user is removed from the room.

Implements com.herewhite.sdk.RoomListener.

◆ onRoomStateChanged()

void com.herewhite.sdk.AbstractRoomCallbacks.onRoomStateChanged ( RoomState  modifyState)

Occurs when the room state changes.

This callback reports only the room state fields that have changed and returns null for the room state fields that have not changed.

Parameters
modifyStateThe room state that has changed. See RoomState.

Implements com.herewhite.sdk.RoomListener.

◆ onCanUndoStepsUpdate()

void com.herewhite.sdk.AbstractRoomCallbacks.onCanUndoStepsUpdate ( long  canUndoSteps)

Occurs when the number of undoable actions changes.

The SDK triggers this callback every time the local user calls undo and reports the number of remaining undoable actions.

Parameters
canUndoStepsThe number of remaining undoable actions.

Implements com.herewhite.sdk.RoomListener.

◆ onCanRedoStepsUpdate()

void com.herewhite.sdk.AbstractRoomCallbacks.onCanRedoStepsUpdate ( long  canRedoSteps)

Occurs when the number of redoable actions changes.

The SDK triggers this callback every time the local user calls redo and reports the number of remaining redoable actions.

Parameters
canRedoStepsThe number of remaining redoable actions.

Implements com.herewhite.sdk.RoomListener.

◆ onCatchErrorWhenAppendFrame()

void com.herewhite.sdk.AbstractRoomCallbacks.onCatchErrorWhenAppendFrame ( long  userId,
Exception  error 
)

Reports the errors that occur during the synchronization of a user's operations.

Parameters
userIdThe user ID of the user whose operations are being synchronized.
errorAn error message.

Implements com.herewhite.sdk.RoomListener.