9 #ifndef AgoraMetachatKit_h
10 #define AgoraMetachatKit_h
12 #import <Foundation/Foundation.h>
67 @property (nonatomic, assign) NSInteger
bundleId;
68 @property (nonatomic, assign) NSInteger
sceneId;
70 @property (nonatomic, copy) NSString * _Nonnull
bundleCode;
71 @property (nonatomic, copy) NSString * _Nonnull
bundleName;
72 @property (nonatomic, copy) NSString * _Nonnull
desc;
74 @property (nonatomic, copy) NSString * _Nonnull
bundlePath;
77 @property (nonatomic, copy) NSString * _Nonnull
assets;
78 @property (nonatomic, copy) NSString * _Nullable
extraInfo;
84 @property (nonatomic, assign) NSInteger
sceneId;
85 @property (nonatomic, copy) NSString * _Nonnull sceneName;
88 @property (nonatomic, copy) NSString * _Nonnull scenePath;
89 @property (nonatomic, copy) NSString * _Nonnull parentScenePath;
90 @property (nonatomic, copy) NSString * _Nonnull
desc;
91 @property (nonatomic, copy) NSString * _Nonnull sceneConfig;
92 @property (nonatomic, copy) NSString * _Nullable
extraInfo;
93 @property (nonatomic, copy) NSString * _Nonnull sceneVersion;
94 @property (nonatomic, copy) NSString * _Nonnull sceneLocalVersion;
95 @property (nonatomic, assign) NSInteger totalSize;
97 @property (nonatomic, strong) NSArray<AgoraMetachatBundleInfo *> * _Nonnull bundles;
101 @property (nonatomic, copy) NSString * _Nonnull userId;
102 @property (nonatomic, copy) NSString * _Nonnull userName;
103 @property (nonatomic, copy) NSString * _Nonnull userIconUrl;
104 @property (nonatomic, strong) NSData * _Nullable extraCustomInfo;
108 @property (nonatomic, copy) NSArray * _Nonnull position;
109 @property (nonatomic, copy) NSArray * _Nonnull forward;
110 @property (nonatomic, copy) NSArray * _Nonnull right;
111 @property (nonatomic, copy) NSArray * _Nonnull up;
117 - (void)onCreateSceneResult:(
AgoraMetachatScene *_Nullable)scene errorCode:(NSInteger)errorCode;
120 - (void)onGetSceneInfosResult:(NSMutableArray * _Nonnull)sceneInfos errorCode:(NSInteger)errorCode;
125 - (void)metachatScene:(
AgoraMetachatScene *_Nonnull)scene onReleasedScene:(NSInteger)errorCode;
126 - (void)metachatScene:(
AgoraMetachatScene *_Nonnull)scene onEnterSceneResult:(NSInteger)errorCode;
127 - (void)metachatScene:(
AgoraMetachatScene *_Nonnull)scene onLeaveSceneResult:(NSInteger)errorCode;
128 - (void)metachatScene:(
AgoraMetachatScene *_Nonnull)scene onRecvMessageFromScene:(NSData * _Nonnull)message;
130 - (void)metachatScene:(
AgoraMetachatScene *_Nonnull)scene onEnumerateVideoDisplaysResult:(NSMutableArray * _Nonnull)displayIds;
135 @property (nonatomic,assign) BOOL localVisible;
136 @property (nonatomic,assign) BOOL remoteVisible;
137 @property (nonatomic,assign) BOOL syncPosition;
138 @property (nonatomic, strong) NSData * _Nullable extraCustomInfo;
142 @property (nonatomic, strong) NSData * _Nullable extraCustomInfo;
146 @property (nonatomic, strong) NSData * _Nullable extraCustomInfo;
150 @property (nonatomic, copy) NSString * _Nonnull appId;
151 @property (nonatomic, copy) NSString * _Nonnull rtmToken;
152 @property (nonatomic, copy) NSString * _Nonnull userId;
153 @property (nonatomic, weak) id<AgoraMetachatEventDelegate> _Nullable delegate;
154 @property (nonatomic, copy) NSString * _Nonnull localDownloadPath;
159 @property (nonatomic, weak) id<AgoraMetachatSceneEventDelegate> _Nullable delegate;
163 @property (nonatomic, copy) NSString * _Nonnull roomName;
164 #if (!(TARGET_OS_IPHONE) && (TARGET_OS_MAC))
165 @property (nonatomic, strong) NSView * _Nonnull sceneView;
167 @property (nonatomic, strong) UIView * _Nonnull sceneView;
169 @property (nonatomic, assign) NSInteger
sceneId;
170 @property (nonatomic, strong) NSData * _Nullable extraCustomInfo;
182 - (NSInteger)setExtraCustomInfo:(NSData *_Nullable)customInfo;
190 #if (!(TARGET_OS_IPHONE) && (TARGET_OS_MAC))
198 - (NSInteger)sendMessageToScene:(NSData *_Nonnull)message;
199 - (NSInteger)setSceneParameters:(NSString *_Nonnull)jsonParam;
200 - (NSInteger)enableUserPositionNotification:(BOOL)enable;
202 - (NSInteger)enableVideoDisplay:(NSString *_Nonnull)displayId enable:(BOOL)enable;
203 - (NSInteger)pushVideoFrameToDisplay:(NSString *_Nonnull)displayId frame:(
AgoraVideoFrame *_Nullable)frame;
205 - (void)enableMainQueueDispatch:(BOOL)enabled NS_SWIFT_NAME(enableMainQueueDispatch(_:));
209 + (instancetype _Nonnull)sharedMetachatWithConfig:(
AgoraMetachatConfig* _Nonnull)config NS_SWIFT_NAME(sharedMetachatWithConfig(_:));
212 - (NSInteger)renewToken:(NSString *_Nonnull)token;
216 - (NSInteger)isSceneDownloaded:(NSInteger)sceneId;
217 - (NSInteger)downloadScene:(NSInteger)sceneId;
218 - (NSInteger)cancelDownloadScene:(NSInteger)sceneId;
219 - (NSInteger)cleanScene:(NSInteger)sceneId;