MethodChannelPlugin class

An implementation of ImpulsePlayerPluginPlatform that uses method channels.

Implemented types

Constructors

MethodChannelPlugin()

Properties

hashCode int
The hash code for this object.
no setterinherited
methodChannel MethodChannel
The method channel used to interact with the native platform.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

dispose(int id) Future<void>
override
fontParams(TextStyle h3) Map<String, Object?>
getDuration(int id) Future<int>
override
getError(int id) Future<String?>
override
getPlatformVersion() Future<String?>
override
getProgress(int id) Future<int>
override
getState(int id) Future<ImpulsePlayerState>
override
isPlaying(int id) Future<bool>
override
keepAlive(int id) Future<void>
override
load(int id, String url, String? title, String? subtitle, Map<String, String> headers) Future<void>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pause(int id) Future<void>
override
play(int id) Future<void>
override
seek(int id, int time) Future<void>
override
setAppearance(TextStyle h3, TextStyle h4, TextStyle s1, TextStyle l4, TextStyle l7, TextStyle p1, TextStyle p2, Color accentColor) Future<void>
override
setCastEnabled(int id, bool enabled) Future<void>
override
setSettings(bool pictureInPictureEnabled, String? castReceiverApplicationId) Future<void>
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited