logo
On this page

IZegoRangeSceneItemEventHandler

IZegoRangeSceneItemEventHandler

Declared in callback/IZegoRangeSceneItemEventHandler.java

Methods

onItemEnterView

onItemEnterView
public void onItemEnterView(ZegoRangeScene rangeScene, long itemID, int capacity, ZegoPosition position, ArrayList<String> userList)
Callback notification when item enters the current user's field of view.
Declared in callback/IZegoRangeSceneItemEventHandler.java

Parameters

NameTypeDescription
rangeSceneZegoRangeSceneRange scene instance that triggers this callback.
itemIDlongItem ID.
capacityintThe number of users allowed to bind the item.
positionZegoPositionItem position.
userListArrayList<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

onItemLeaveView
public void onItemLeaveView(ZegoRangeScene rangeScene, long itemID)
Callback notification when item leave the current user's field of view.
Declared in callback/IZegoRangeSceneItemEventHandler.java

Parameters

NameTypeDescription
rangeSceneZegoRangeSceneRange scene instance that triggers this callback.
itemIDlongItem 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

onItemBindUpdate
public void onItemBindUpdate(ZegoRangeScene rangeScene, long itemID, String userID)
Item binding user change callback notification.
Declared in callback/IZegoRangeSceneItemEventHandler.java

Parameters

NameTypeDescription
rangeSceneZegoRangeSceneRange scene instance that triggers this callback.
itemIDlongItem ID.
userIDStringThe 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

onItemUnbindUpdate
public void onItemUnbindUpdate(ZegoRangeScene rangeScene, long itemID, ArrayList<String> userList)
Item unbind user change callback notification.
Declared in callback/IZegoRangeSceneItemEventHandler.java

Parameters

NameTypeDescription
rangeSceneZegoRangeSceneRange scene instance that triggers this callback.
itemIDlongItem ID.
userListArrayList<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

onItemStatusUpdate
public void onItemStatusUpdate(ZegoRangeScene rangeScene, long itemID, ZegoPosition position, int channel, byte[] status)
Item state update callback.
Declared in callback/IZegoRangeSceneItemEventHandler.java

Parameters

NameTypeDescription
rangeSceneZegoRangeSceneRange scene instance that triggers this callback.
itemIDlongItem ID.
positionZegoPositionItem's current position.
channelintThe channel to which the status belongs.
statusbyte[]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

onItemCommandUpdate
public void onItemCommandUpdate(ZegoRangeScene rangeScene, long itemID, ZegoPosition position, int channel, byte[] command)
Item command update callback.
Declared in callback/IZegoRangeSceneItemEventHandler.java

Parameters

NameTypeDescription
rangeSceneZegoRangeSceneRange scene instance that triggers this callback.
itemIDlongItem ID.
positionZegoPositionItem's current position.
channelintThe channel to which the command belongs.
commandbyte[]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.

Previous

izegorangesceneeventhandler

Next

izegorangescenestreameventhandler

On this page

Back to top