onSongSimpleInfoResult

Callback for retrieving detailed information about a music resource.

virtual void onSongSimpleInfoResult(const char* requestId, int64_t songCode, const char* simpleInfo, MusicContentCenterStateReason reason) = 0;

After calling getSongSimpleInfo, the SDK triggers this callback.

Trigger Timing

Triggered after calling getSongSimpleInfo.

Parameters

requestId
The request ID, used to identify this request uniquely.
songCode
The ID of the music resource, used to identify the music.
simpleInfo
Information about the music resource, including:
  • Start and end time (in milliseconds) of the chorus segment.
  • Download link for the chorus lyrics.
  • Duration (in milliseconds) of the chorus segment.
  • Song name.
  • Artist name.
reason
Request status code. See MusicContentCenterStateReason.