nowPlaying method
Future<int>
nowPlaying(
- TauPlayerCallback callback, {
- Duration? progress,
- Duration? duration,
- Map<
String, dynamic> ? track, - bool? canPause,
- bool? canSkipForward,
- bool? canSkipBackward,
- bool? defaultPauseResume,
override
Implementation
@override
Future<int> nowPlaying(TauPlayerCallback callback, {Duration? progress, Duration? duration, Map<String, dynamic>? track, bool? canPause, bool? canSkipForward, bool? canSkipBackward, bool? defaultPauseResume, }) async
{
return invokeMethod( callback, 'nowPlaying', {'progress': progress!.inMilliseconds, 'duration': duration!.inMilliseconds, 'track': track, 'canPause': canPause, 'canSkipForward': canSkipForward, 'canSkipBackward': canSkipBackward,
'defaultPauseResume': defaultPauseResume,},);
}