5#import <Foundation/Foundation.h>
17- (void)onPreloadStart:(NSString *)songId channel:(
SongChannel)channel;
22- (void)onPreloadProgress:(NSString *)songId channel:(
SongChannel)channel progress:(
float)progress;
27- (void)onPreloadComplete:(NSString *)songId
29 error:(NSError *_Nullable)error;
58- (void)initialize:(NSString *_Nonnull)appkey
59 token:(NSString *_Nonnull)token
60 userUuid:(NSString *_Nullable)userUuid
61 extras:(NSDictionary *_Nullable)extras
62 callback:(
void (^)(NSError *_Nullable error))callback;
71- (void)preloadSong:(NSString *)songId
83- (void)cancelPreloadSong:(NSString *)songId channel:(
SongChannel)channel;
92- (bool)isSongPreloaded:(NSString *)songId channel:(
SongChannel)channel;
100- (void)searchSong:(NSString *_Nullable)keyword
101 channel:(NSNumber *_Nullable)channel
102 pageNum:(NSNumber *_Nullable)pageNum
103 pageSize:(NSNumber *_Nullable)pageSize
105 NSError *_Nullable error))callback;
115- (NSString *_Nullable)getSongURI:(NSString *_Nonnull)songId
125- (NSString *_Nullable)getLyric:(NSString *_Nonnull)songId channel:(
SongChannel)channel;
133- (NSString *_Nullable)getPitch:(NSString *_Nonnull)songId channel:(
SongChannel)channel;
138- (void)preloadSongLyric:(NSString *)songId
140 callback:(
void (^)(NSString *_Nullable content, NSString *_Nullable lyricType,
141 NSError *_Nullable error))callback;
150- (void)getSongList:(NSArray<NSString *> *_Nullable)tags
151 channel:(NSNumber *_Nullable)channel
152 pageNum:(NSNumber *_Nullable)pageNum
153 pageSize:(NSNumber *_Nullable)pageSize
154 callback:(
void (^)(NSArray<
NECopyrightedSong *> *songList, NSError *error))callback;
167 channel:(NSNumber *_Nullable)channel
168 pageNum:(NSNumber *_Nullable)pageNum
169 pageSize:(NSNumber *_Nullable)pageSize
178- (void)renewToken:(NSString *)token;
188- (void)setSongScene:(
SongScene)songScene;
热门榜单Model
Definition: NECopyrightedHotSong.h:12
歌曲Model
Definition: NECopyrightedSong.h:12
动态Token监听
Definition: NECopyrightedMedia.h:34
void onTokenExpired()
Tokne过期
预加载协议
Definition: NECopyrightedMedia.h:12