9 #ifndef AgoraMetachatKit_h
10 #define AgoraMetachatKit_h
12 #import <Foundation/Foundation.h>
55 @property (nonatomic, assign) NSInteger
avatarId;
56 @property (nonatomic, copy) NSString * _Nonnull
avatarCode;
57 @property (nonatomic, copy) NSString * _Nonnull
avatarName;
58 @property (nonatomic, copy) NSString * _Nonnull
desc;
60 @property (nonatomic, copy) NSString * _Nonnull
avatarPath;
63 @property (nonatomic, copy) NSString * _Nonnull
assets;
64 @property (nonatomic, copy) NSString * _Nonnull
extraInfo;
69 @property (nonatomic, assign) NSInteger sceneId;
70 @property (nonatomic, copy) NSString * _Nonnull sceneName;
73 @property (nonatomic, copy) NSString * _Nonnull scenePath;
74 @property (nonatomic, copy) NSString * _Nonnull
desc;
75 @property (nonatomic, copy) NSString * _Nonnull sceneConfig;
76 @property (nonatomic, copy) NSString * _Nonnull
assets;
77 @property (nonatomic, copy) NSString * _Nonnull
extraInfo;
78 @property (nonatomic, copy) NSString * _Nonnull sceneVersion;
79 @property (nonatomic, copy) NSString * _Nonnull sceneLocalVersion;
81 @property (nonatomic, strong) NSArray<AgoraMetachatAvatarInfo *> * _Nonnull avatars;
85 @property (nonatomic, copy) NSString * _Nonnull userId;
86 @property (nonatomic, copy) NSString * _Nonnull userName;
87 @property (nonatomic, copy) NSString * _Nonnull userIconUrl;
91 @property (nonatomic, strong) NSArray * _Nonnull position;
92 @property (nonatomic, strong) NSArray * _Nonnull forward;
93 @property (nonatomic, strong) NSArray * _Nonnull right;
94 @property (nonatomic, strong) NSArray * _Nonnull up;
101 - (void)onGetScenesResult:(NSMutableArray * _Nonnull)scenes errorCode:(NSInteger)errorCode NS_SWIFT_NAME(onGetScenesResult(_:errorCode:));
107 - (void)metachatScene:(
AgoraMetachatScene *_Nonnull)scene onEnterSceneResult:(NSInteger)errorCode NS_SWIFT_NAME(metachatScene(_:onEnterSceneResult:));
108 - (void)metachatScene:(
AgoraMetachatScene *_Nonnull)scene onLeaveSceneResult:(NSInteger)errorCode NS_SWIFT_NAME(metachatScene(_:onLeaveSceneResult:));
109 - (void)metachatScene:(
AgoraMetachatScene *_Nonnull)scene onRecvMessageFromScene:(NSData * _Nonnull)message NS_SWIFT_NAME(metachatScene(_:onRecvMessageFromScene:));
110 - (void)metachatScene:(
AgoraMetachatScene *_Nonnull)scene onUserPositionChanged:(NSString * _Nonnull)uid posInfo:(
AgoraMetachatPositionInfo * _Nonnull)posInfo NS_SWIFT_NAME(metachatScene(_:onUserPositionChanged:posInfo:));
115 @property (nonatomic,assign) BOOL localVisible;
116 @property (nonatomic,assign) BOOL remoteVisible;
117 @property (nonatomic,assign) BOOL syncPosition;
121 @property (nonatomic,copy) NSString * _Nonnull appId;
122 @property (nonatomic,copy) NSString * _Nonnull token;
124 @property (nonatomic,weak) id<AgoraMetachatEventDelegate> _Nullable delegate;
125 @property (nonatomic,copy) NSString * _Nonnull localDownloadPath;
135 - (NSInteger)sendMessageToScene:(NSData *_Nonnull)message NS_SWIFT_NAME(sendMessageToScene(_:));
136 - (NSInteger)setSceneParameters:(NSString *_Nonnull)jsonParam NS_SWIFT_NAME(setSceneParameters(_:));
137 - (NSInteger)enableUserPositionNotification:(BOOL)enable NS_SWIFT_NAME(enableUserPositionNotification(_:));
138 - (NSInteger)enableVideoDisplay:(uint32_t)displayId enable:(BOOL)enable NS_SWIFT_NAME(enableVideoDisplay(_:enable:));
139 - (NSInteger)pushVideoFrameToDisplay:(uint32_t)displayId frame:(
AgoraVideoFrame *_Nullable)frame NS_SWIFT_NAME(pushVideoFrameToDisplay(_:frame:));
142 - (void)enableMainQueueDispatch:(BOOL)enabled NS_SWIFT_NAME(enableMainQueueDispatch(_:));
146 + (instancetype _Nonnull)sharedMetachatWithConfig:(
AgoraMetachatConfig* _Nonnull)config NS_SWIFT_NAME(sharedMetachatWithConfig(_:));
151 - (NSInteger)isSceneDownloaded:(NSInteger)sceneId NS_SWIFT_NAME(isSceneDownloaded(_:));
152 - (NSInteger)downloadScene:(NSInteger)sceneId NS_SWIFT_NAME(downloadScene(_:));
153 - (NSInteger)cancelDownloadScene:(NSInteger)sceneId NS_SWIFT_NAME(cancelDownloadScene(_:));
154 - (NSInteger)cleanScene:(NSInteger)sceneId NS_SWIFT_NAME(cleanScene(_:));