PlayerNativeControls class
Player Native Controls
These media controls show near the volume slider & on the lock screen in Windows 10. a.k.a System Media Transport Controls.
This class offers various methods to control its state, style & displayed info.
For more raw control, use NativeControls
instead.
Player player = Player(id: 0);
player.nativeControls.status = NativeControlsStatus.paused;
player.nativeControls.update(
albumArtist: 'Porter Robinson',
album: 'Divinity',
thumbnail: File('album_art.png'),
);
Constructors
- PlayerNativeControls({required int id})
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- id → int
-
Player's unique id.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- status ↔ NativeControlsStatus
-
Current status of PlayerNativeControls.
getter/setter pair
Methods
-
clear(
) → void - Clears the native controls associated with the Player.
-
dispose(
) → void - Disposes the native controls associated with the Player.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
update(
{String? albumArtist, String? album, int? trackCount, String? artist, String? title, int? trackNumber, Uri? thumbnail}) → Future< void> - Updates currently playing Media's displayed info in the native controls.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited