IZegoRangeSceneItemEventHandler
IZegoRangeSceneItemEventHandler
Declared in callback/IZegoRangeSceneItemEventHandler.java
Methods
onItemEnterView
public void onItemEnterView(ZegoRangeScene rangeScene, long itemID, int capacity, ZegoPosition position, ArrayList<String> userList)callback/IZegoRangeSceneItemEventHandler.javaParameters
| Name | Type | Description |
|---|---|---|
| rangeScene | ZegoRangeScene | Range scene instance that triggers this callback. |
| itemID | long | Item ID. |
| capacity | int | The number of users allowed to bind the item. |
| position | ZegoPosition | Item position. |
| userList | ArrayList<String> | List of users the item is currently bound to. |
Details
Callback notification when item enters the current user's field of view. When to trigger: Item enters the current user's field of view.
- Restrictions: Do not call the SDK interface in the callback thread.
onItemLeaveView
public void onItemLeaveView(ZegoRangeScene rangeScene, long itemID)callback/IZegoRangeSceneItemEventHandler.javaParameters
| Name | Type | Description |
|---|---|---|
| rangeScene | ZegoRangeScene | Range scene instance that triggers this callback. |
| itemID | long | Item ID. |
Details
Callback notification when item leave the current user's field of view. When to trigger: Item leave the current user's field of view.
- Restrictions: Do not call the SDK interface in the callback thread.
onItemBindUpdate
public void onItemBindUpdate(ZegoRangeScene rangeScene, long itemID, String userID)callback/IZegoRangeSceneItemEventHandler.javaParameters
| Name | Type | Description |
|---|---|---|
| rangeScene | ZegoRangeScene | Range scene instance that triggers this callback. |
| itemID | long | Item ID. |
| userID | String | The user ID of the item binding. |
Details
Item binding user change callback notification. When to trigger: Item binding user change.
- Restrictions: Do not call the SDK interface in the callback thread.
onItemUnbindUpdate
public void onItemUnbindUpdate(ZegoRangeScene rangeScene, long itemID, ArrayList<String> userList)callback/IZegoRangeSceneItemEventHandler.javaParameters
| Name | Type | Description |
|---|---|---|
| rangeScene | ZegoRangeScene | Range scene instance that triggers this callback. |
| itemID | long | Item ID. |
| userList | ArrayList<String> | List of users the item unbind. |
Details
Item unbind user change callback notification. When to trigger: Item unbind user change.
- Restrictions: Do not call the SDK interface in the callback thread.
onItemStatusUpdate
public void onItemStatusUpdate(ZegoRangeScene rangeScene, long itemID, ZegoPosition position, int channel, byte[] status)callback/IZegoRangeSceneItemEventHandler.javaParameters
| Name | Type | Description |
|---|---|---|
| rangeScene | ZegoRangeScene | Range scene instance that triggers this callback. |
| itemID | long | Item ID. |
| position | ZegoPosition | Item's current position. |
| channel | int | The channel to which the status belongs. |
| status | byte[] | Current status data. |
Details
Item state update callback. When to trigger: Item state update.
- Caution: This callback is a high-frequency callback, please do not perform time-consuming operations in this callback.
- Restrictions: Do not call the SDK interface in the callback thread.
onItemCommandUpdate
public void onItemCommandUpdate(ZegoRangeScene rangeScene, long itemID, ZegoPosition position, int channel, byte[] command)callback/IZegoRangeSceneItemEventHandler.javaParameters
| Name | Type | Description |
|---|---|---|
| rangeScene | ZegoRangeScene | Range scene instance that triggers this callback. |
| itemID | long | Item ID. |
| position | ZegoPosition | Item's current position. |
| channel | int | The channel to which the command belongs. |
| command | byte[] | Next command data. |
Details
Item command update callback. When to trigger: Item command update.
- Caution: This callback is a high-frequency callback, please do not perform time-consuming operations in this callback.
- Restrictions: Do not call the SDK interface in the callback thread.
