setPreloadObserver abstract method

void setPreloadObserver(
  1. TXMusicPreloadObserver? observer
)

Setting Music Preload Callback

Before preloading music, please use this API to set the preload callback, which can inform you of the preload status.

Implementation

void setPreloadObserver(TXMusicPreloadObserver? observer);