Class IZegoRangeSceneItemEventHandler


  • public abstract class IZegoRangeSceneItemEventHandler
    extends java.lang.Object
    • Constructor Detail

      • IZegoRangeSceneItemEventHandler

        public IZegoRangeSceneItemEventHandler()
    • Method Detail

      • onItemEnterView

        public void onItemEnterView​(ZegoRangeScene rangeScene,
                                    long itemID,
                                    int capacity,
                                    ZegoPosition position,
                                    java.util.ArrayList<java.lang.String> userList)
        Callback notification when item enters the current user's field of view. Available: Since 3.1.0 Description: 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.
        Parameters:
        rangeScene - Range scene instance that triggers this callback.
        itemID - Item ID.
        capacity - The number of users allowed to bind the item.
        position - Item position.
        userList - List of users the item is currently bound to.
      • onItemLeaveView

        public void onItemLeaveView​(ZegoRangeScene rangeScene,
                                    long itemID)
        Callback notification when item leave the current user's field of view. Available: Since 3.1.0 Description: 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.
        Parameters:
        rangeScene - Range scene instance that triggers this callback.
        itemID - Item ID.
      • onItemBindUpdate

        public void onItemBindUpdate​(ZegoRangeScene rangeScene,
                                     long itemID,
                                     java.lang.String userID)
        Item binding user change callback notification. Available: Since 3.1.0 Description: Item binding user change callback notification. When to trigger: Item binding user change. Restrictions: Do not call the SDK interface in the callback thread.
        Parameters:
        rangeScene - Range scene instance that triggers this callback.
        itemID - Item ID.
        userID - The user ID of the item binding.
      • onItemUnbindUpdate

        public void onItemUnbindUpdate​(ZegoRangeScene rangeScene,
                                       long itemID,
                                       java.util.ArrayList<java.lang.String> userList)
        Item unbind user change callback notification. Available: Since 3.1.0 Description: Item unbind user change callback notification. When to trigger: Item unbind user change. Restrictions: Do not call the SDK interface in the callback thread.
        Parameters:
        rangeScene - Range scene instance that triggers this callback.
        itemID - Item ID.
        userList - List of users the item unbind.
      • onItemStatusUpdate

        public void onItemStatusUpdate​(ZegoRangeScene rangeScene,
                                       long itemID,
                                       ZegoPosition position,
                                       int channel,
                                       byte[] status)
        Item state update callback. Available: Since 3.1.0 Description: Item state update callback. When to trigger: Item state update. Restrictions: Do not call the SDK interface in the callback thread. Caution: This callback is a high-frequency callback, please do not perform time-consuming operations in this callback.
        Parameters:
        rangeScene - Range scene instance that triggers this callback.
        itemID - Item ID.
        position - Item's current position.
        channel - The channel to which the status belongs.
        status - Current status data.
      • onItemCommandUpdate

        public void onItemCommandUpdate​(ZegoRangeScene rangeScene,
                                        long itemID,
                                        ZegoPosition position,
                                        int channel,
                                        byte[] command)
        Item command update callback. Available: Since 3.1.0 Description: Item command update callback. When to trigger: Item command update. Restrictions: Do not call the SDK interface in the callback thread. Caution: This callback is a high-frequency callback, please do not perform time-consuming operations in this callback.
        Parameters:
        rangeScene - Range scene instance that triggers this callback.
        itemID - Item ID.
        position - Item's current position.
        channel - The channel to which the command belongs.
        command - Next command data.