ZegoRangeSceneItem Class Reference
Inherits from | NSObject |
---|---|
Declared in | ZegoExpressDefines.h |
– setEventHandler:
The object used to receive range scene item callbacks.
- (BOOL)setEventHandler:(nullable id<ZegoRangeSceneItemEventHandler>)handler
Parameters
handler |
The object used to receive range scene item callbacks. |
---|
Return Value
The result of set range scene item event handler, YES: success, NO: fail.
Declared In
ZegoExpressDefines.h
– createItem:callback:
Item param.
- (void)createItem:(ZegoItemParam *)param callback:(nullable ZegoRangeSceneCreateItemCallback)callback
Parameters
param |
Item param. |
---|---|
callback |
The callback of create item. |
Declared In
ZegoExpressDefines.h
– destroyItem:callback:
Item ID.
- (void)destroyItem:(long long)itemID callback:(nullable ZegoRangeSceneDestroyItemCallback)callback
Parameters
itemID |
Item ID. |
---|---|
callback |
The callback of destroy item. |
Declared In
ZegoExpressDefines.h
– bindItem:callback:
Item ID.
- (void)bindItem:(long long)itemID callback:(nullable ZegoRangeSceneBindItemCallback)callback
Parameters
itemID |
Item ID. |
---|---|
callback |
The callback of bind item. |
Declared In
ZegoExpressDefines.h
– unbindItem:callback:
Item ID.
- (void)unbindItem:(long long)itemID callback:(nullable ZegoRangeSceneUnbindItemCallback)callback
Parameters
itemID |
Item ID. |
---|---|
callback |
The callback of unbind item. |
Declared In
ZegoExpressDefines.h
– updateItemStatus:position:channel:status:callback:
Item ID.
- (void)updateItemStatus:(long long)itemID position:(ZegoPosition *)position channel:(unsigned int)channel status:(NSData *)status callback:(nullable ZegoRangeSceneUpdateItemStatusCallback)callback
Parameters
itemID |
Item ID. |
---|---|
position |
Item’s current location. |
channel |
The channel to which the status belongs, starting from 0, cannot exceed the maximum channel number. |
status |
Current status data. |
callback |
The callback of update item status. |
Declared In
ZegoExpressDefines.h
– updateItemCommand:position:channel:command:callback:
Item ID.
- (void)updateItemCommand:(long long)itemID position:(ZegoPosition *)position channel:(unsigned int)channel command:(NSData *)command callback:(nullable ZegoRangeSceneUpdateItemCommandCallback)callback
Parameters
itemID |
Item ID. |
---|---|
position |
Item’s current location. |
channel |
The channel to which the status belongs, starting from 0, cannot exceed the maximum channel number. |
command |
Next command data. |
callback |
The callback of update item next command. |
Declared In
ZegoExpressDefines.h
+ new
Please use the [getRangeSceneItem] function in ZegoRangeScene class instead.
+ (instancetype)new
Declared In
ZegoExpressDefines.h
– init
Please use the [getRangeSceneItem] function in ZegoRangeScene class instead.
- (instancetype)init
Declared In
ZegoExpressDefines.h