MethodChannelByteArkPlayerFlutter class
An implementation of ByteArkPlayerControllerPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- ByteArkPlayerControllerPlatform
- MethodChannelByteArkPlayerFlutter
Constructors
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
-
currentPosition(
) → Future< double?> -
Retrieves the current playback position.
override
-
dispose(
) → void -
Releases resources held by the player.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pause(
) → void -
Pauses playback.
override
-
play(
) → void -
Starts playback.
override
-
seekBackward(
) → void -
Seeks backward in the media.
override
-
seekForward(
) → void -
Seeks forward in the media.
override
-
seekTo(
int position) → void -
Seeks to a specific position in the media.
override
-
switchMediaSource(
ByteArkPlayerConfig config) → void -
Switches the media source with a new
config
.override -
toggleFullScreen(
) → void -
Toggles fullscreen mode.
override
-
togglePlayback(
) → void -
Toggles between play and pause states.
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited