getLyric abstract method

Future<String> getLyric({
  1. required int songCode,
  2. int lyricType = 0,
})

获取音乐资源的歌词下载地址。

成功调用该方法后,SDK 会触发 onLyricResult 回调报告歌词的下载地址。

  • songCode 音乐资源的编号,用于标识音乐资源。
  • lyricType 歌词类型: 0:xml 格式。 1:lrc 格式。

Returns 一个 requestId ,为本次请求的唯一标识。

Implementation

Future<String> getLyric({required int songCode, int lyricType = 0});