downloadLyric method
@detail api @author lihuan.wuti2ha @brief Download lyrics. @param musicId Music ID. @param lyricType The lyrics file's format. See ByteRTCDownloadLyricType{@link #ByteRTCDownloadLyricType}. @return Download task ID. @note - If the lyrics are successfully downloaded, you will receive ktvManager:onDownloadSuccess:downloadResult:{@link #ByteRTCKTVManagerDelegate#ktvManager:onDownloadSuccess:downloadResult}. - If the lyrics fail to download, you will receive ktvManager:onDownloadFailed:errorCode:{@link #ByteRTCKTVManagerDelegate#ktvManager:onDownloadFailed:errorCode}.
Implementation
FutureOr<int> downloadLyric(
NSString musicId, ByteRTCDownloadLyricType lyricType) async {
return await nativeCall(
'downloadLyric:lyricType:', [musicId, lyricType.$value]);
}