searchMusic method
@detail api @author lihuan.wuti2ha @brief Search music by keywords. @param keyWord Keyword. The string should be no more than 20 characters. @param pageNumber Page number. The default value is 1. @param pageSize The number of the music that displays on one page. @param filterType The filter type of the music list. See ByteRTCMusicFilterType{@link #ByteRTCMusicFilterType}. Multiple filters can be combined by the bitwise-or operator. @note After calling this API, you will receive the music list through ktvManager:onSearchMusicResult:totalSize:errorCode:{@link #ByteRTCKTVManagerDelegate#ktvManager:onSearchMusicResult:totalSize:errorCode} callback.
Implementation
FutureOr<void> searchMusic(
NSString keyWord, int pageNumber, int pageSize, int filterType) async {
return await nativeCall('searchMusic:pageNumber:pageSize:filterType:',
[keyWord, pageNumber, pageSize, filterType]);
}