9 #import <Foundation/Foundation.h>
94 NS_ASSUME_NONNULL_BEGIN
112 @property (nonatomic, copy) NSString *chartName;
116 @property (nonatomic, assign) NSInteger identify;
123 @property (nonatomic, copy) NSString *resolution;
127 @property (nonatomic, copy) NSString *bandwidth;
134 @property(nonatomic, assign) NSInteger startTimeMs;
138 @property(nonatomic, assign) NSInteger endTimeMs;
144 __attribute__((visibility(
"default")))
@interface AgoraMusic : NSObject
159 @property(nonatomic, assign) NSInteger type;
165 @property(nonatomic, assign) NSInteger pitchType;
169 @property(nonatomic, copy) NSString* name;
173 @property(nonatomic, copy) NSString* singer;
177 @property(nonatomic, copy) NSString* poster;
182 @property(nonatomic, copy) NSString* releaseTime;
186 @property(nonatomic, assign) NSInteger durationS;
192 @property(nonatomic, strong) NSArray<NSNumber *>* lyricList;
196 @property(nonatomic, strong) NSArray<AgoraMvProperty *>* mvPropertyList;
200 @property(nonatomic, strong) NSArray<AgoraClimaxSegment *>* climaxSegmentList;
210 @property(nonatomic, assign) NSInteger count;
214 @property(nonatomic, assign) NSInteger total;
218 @property(nonatomic, assign) NSInteger page;
222 @property(nonatomic, assign) NSInteger pageSize;
226 @property(nonatomic, strong) NSArray<AgoraMusic *>* musicList;
259 - (void)onLyricResult:(NSString*)requestId songCode:(NSInteger)songCode lyricUrl:(NSString* _Nullable)lyricUrl errorCode:(
AgoraMusicContentCenterStatusCode)errorCode;
269 - (void)onSongSimpleInfoResult:(NSString*)requestId songCode:(NSInteger)songCode simpleInfo:(NSString* _Nullable)simpleInfo errorCode:(
AgoraMusicContentCenterStatusCode)errorCode;
291 @property (nonatomic, copy) NSString *appId;
295 @property (nonatomic, copy) NSString *token;
299 @property (nonatomic, assign) NSInteger mccUid;
303 @property (nonatomic, assign) NSUInteger maxCacheSize;
307 @property(nonatomic, copy) NSString* mccDomain;
320 - (NSInteger)openMediaWithSongCode:(NSInteger)songCode startPos:(NSInteger)startPos NS_SWIFT_NAME(openMedia(
songCode:startPos:));
341 - (NSInteger)renewToken:(NSString * _Nonnull)token;
380 - (NSString *)getMusicCollectionWithMusicChartId:(NSInteger)musicChartId page:(NSInteger)page pageSize:(NSInteger)pageSize jsonOption:(NSString * _Nullable)jsonOption NS_SWIFT_NAME(getMusicCollection(musicChartId:page:pageSize:jsonOption:));
391 - (NSString *)searchMusicWithKeyWord:(NSString *)keyWord page:(NSInteger)page pageSize:(NSInteger)pageSize jsonOption:(NSString * _Nullable)jsonOption NS_SWIFT_NAME(searchMusic(keyWord:page:pageSize:jsonOption:));
403 - (NSInteger)preloadWithSongCode:(NSInteger)songCode jsonOption:(NSString* _Nullable)jsonOption NS_SWIFT_NAME(preload(
songCode:jsonOption:)) __attribute__((deprecated("Use preload(
songCode:) instead.")));
411 - (NSString *)preloadWithSongCode:(NSInteger)songCode NS_SWIFT_NAME(preload(
songCode:));
421 - (NSInteger)isPreloadedWithSongCode:(NSInteger)songCode NS_SWIFT_NAME(isPreloaded(
songCode:));
431 - (NSInteger)removeCacheWithSongCode:(NSInteger)songCode NS_SWIFT_NAME(removeCache(
songCode:));
449 - (NSInteger)getInternalSongCode:(NSInteger)songCode jsonOption:(NSString * _Nullable)jsonOption NS_SWIFT_NAME(getInternalSongCode(
songCode:jsonOption:));
458 - (NSString *)getLyricWithSongCode:(NSInteger)songCode lyricType:(NSInteger)lyricType NS_SWIFT_NAME(getLyric(
songCode:lyricType:));
466 - (NSString *)getSongSimpleInfoWithSongCode:(NSInteger)songCode NS_SWIFT_NAME(getSongSimpleInfo(
songCode:));
473 - (void)enableMainQueueDispatch:(BOOL)enabled;
484 NS_ASSUME_NONNULL_END