isAutoplay method

  1. @override
Future<bool?> isAutoplay(
  1. String playerReference
)
override

Implementation

@override
Future<bool?> isAutoplay(String playerReference) async {
  try {
    return await methodChannel.invokeMethod<bool>('isAutoplay', {'playerReference': playerReference});
  } on PlatformException catch (e) {
    debugPrint('Failed to check autoplay: ${e.message}');
    rethrow;
  }
}