9 #import <Foundation/Foundation.h>
91 NS_ASSUME_NONNULL_BEGIN
97 @property(nonatomic, assign) NSInteger
songCode;
109 @property (nonatomic, copy) NSString *chartName;
113 @property (nonatomic, assign) NSInteger identify;
120 @property (nonatomic, copy) NSString *resolution;
124 @property (nonatomic, copy) NSString *bandwidth;
131 @property(nonatomic, assign) NSInteger startTimeMs;
135 @property(nonatomic, assign) NSInteger endTimeMs;
141 __attribute__((visibility(
"default")))
@interface AgoraMusic : NSObject
156 @property(nonatomic, assign) NSInteger type;
162 @property(nonatomic, assign) NSInteger pitchType;
166 @property(nonatomic, copy) NSString* name;
170 @property(nonatomic, copy) NSString* singer;
174 @property(nonatomic, copy) NSString* poster;
179 @property(nonatomic, copy) NSString* releaseTime;
183 @property(nonatomic, assign) NSInteger durationS;
189 @property(nonatomic, strong) NSArray<NSNumber *>* lyricList;
193 @property(nonatomic, strong) NSArray<AgoraMvProperty *>* mvPropertyList;
197 @property(nonatomic, strong) NSArray<AgoraClimaxSegment *>* climaxSegmentList;
207 @property(nonatomic, assign) NSInteger count;
211 @property(nonatomic, assign) NSInteger total;
215 @property(nonatomic, assign) NSInteger page;
219 @property(nonatomic, assign) NSInteger pageSize;
223 @property(nonatomic, strong) NSArray<AgoraMusic *>* musicList;
256 - (void)onLyricResult:(NSString*)requestId songCode:(NSInteger)songCode lyricUrl:(NSString* _Nullable)lyricUrl errorCode:(
AgoraMusicContentCenterStatusCode)errorCode;
266 - (void)onSongSimpleInfoResult:(NSString*)requestId songCode:(NSInteger)songCode simpleInfo:(NSString* _Nullable)simpleInfo errorCode:(
AgoraMusicContentCenterStatusCode)errorCode;
288 @property (nonatomic, copy) NSString *appId;
292 @property (nonatomic, copy) NSString *token;
296 @property (nonatomic, assign) NSInteger mccUid;
300 @property (nonatomic, assign) NSUInteger maxCacheSize;
313 - (NSInteger)openMediaWithSongCode:(NSInteger)songCode startPos:(NSInteger)startPos NS_SWIFT_NAME(openMedia(
songCode:startPos:));
334 - (NSInteger)renewToken:(NSString * _Nonnull)token;
373 - (NSString *)getMusicCollectionWithMusicChartId:(NSInteger)musicChartId page:(NSInteger)page pageSize:(NSInteger)pageSize jsonOption:(NSString * _Nullable)jsonOption NS_SWIFT_NAME(getMusicCollection(musicChartId:page:pageSize:jsonOption:));
384 - (NSString *)searchMusicWithKeyWord:(NSString *)keyWord page:(NSInteger)page pageSize:(NSInteger)pageSize jsonOption:(NSString * _Nullable)jsonOption NS_SWIFT_NAME(searchMusic(keyWord:page:pageSize:jsonOption:));
396 - (NSInteger)preloadWithSongCode:(NSInteger)songCode jsonOption:(NSString* _Nullable)jsonOption NS_SWIFT_NAME(preload(
songCode:jsonOption:)) __attribute__((deprecated("Use preload(
songCode:) instead.")));
404 - (NSString *)preloadWithSongCode:(NSInteger)songCode NS_SWIFT_NAME(preload(
songCode:));
414 - (NSInteger)isPreloadedWithSongCode:(NSInteger)songCode NS_SWIFT_NAME(isPreloaded(
songCode:));
424 - (NSInteger)removeCacheWithSongCode:(NSInteger)songCode NS_SWIFT_NAME(removeCache(
songCode:));
442 - (NSInteger)getInternalSongCode:(NSInteger)songCode jsonOption:(NSString * _Nullable)jsonOption NS_SWIFT_NAME(getInternalSongCode(
songCode:jsonOption:));
451 - (NSString *)getLyricWithSongCode:(NSInteger)songCode lyricType:(NSInteger)lyricType NS_SWIFT_NAME(getLyric(
songCode:lyricType:));
459 - (NSString *)getSongSimpleInfoWithSongCode:(NSInteger)songCode NS_SWIFT_NAME(getSongSimpleInfo(
songCode:));
466 - (void)enableMainQueueDispatch:(BOOL)enabled;
477 NS_ASSUME_NONNULL_END