VodMethodChannel class
Per-player MethodChannel wrapper.
Each TXVodPlayerController holds one and playerId is injected automatically.
Usage:
final mc = VodMethodChannel(_playerId);
await mc.invoke<bool>('startVodPlay', {'value': url});
Constructors
- VodMethodChannel(int playerId)
Properties
Methods
-
invoke<
T> (String method, [Map< String, dynamic> ? args]) → Future<T?> -
Invoke a native method with
playerIdauto-injected. -
invokeList(
String method, [Map< String, dynamic> ? args]) → Future<List?> -
Convenience helper when the return type is
List. -
invokeMap(
String method, [Map< String, dynamic> ? args]) → Future<Map?> -
Convenience helper when the return type is
Map. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited