TXMusicPlayObserver constructor

TXMusicPlayObserver({
  1. required void onStart(
    1. int id,
    2. int errorCode
    ),
  2. required void onPlayProgress(
    1. int id,
    2. int curPtsMSm,
    3. int durationMS
    ),
  3. required void onComplete(
    1. int id,
    2. int errorCode
    ),
})

Implementation

TXMusicPlayObserver({
  required this.onStart,
  required this.onPlayProgress,
  required this.onComplete,
});