HandsUpContext
provides the methods that can be called by your app for the hand-raising function.
abstract fun performHandsUp(state: EduContextHandsUpState, callback: EduContextCallback<Boolean>? = null)
Raise or lower the hand.
Parameter | Description |
---|---|
state |
The current hand state. See EduContextHandsUpState for details. |
callback |
Get the result of hand raising asynchronously through EduContextCallback . |
IHandsUpHandler
reports event callbacks related to the hand-raising function to your app.
fun onHandsUpEnabled(enabled: Boolean)
Indicates whether the hand-raising function is enabled.
Parameter | Description |
---|---|
enabled |
Whether the hand-raising function is enabled. |
fun onHandsUpStateUpdated(state: EduContextHandsUpState, coHost: Boolean)
Occurs when the hand state updates.
Parameter | Description |
---|---|
state |
The current hand state. See EduContextHandsUpState. |
coHost |
Whether the local client is on "stage". The on-stage students cannot raise their hands. |
fun onHandsUpStateResultUpdated(error: EduContextError?)
Reports the result of raising the hand. If error
is not empty, it means the local client fails to raise the hand.
Parameter | Description |
---|---|
error |
The error code. See EduContextError for details. |
fun onHandsUpTips(tips: String)
Displays tips related to hand-raising.
There are the following tips:
Parameter | Description |
---|---|
tips |
The tip. |