MethodChannelMusicInfoPlugin class

An implementation of MusicInfoPluginPlatform that uses method channels.

Inheritance

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

getCurrentTrackArtwork() Future<Uint8List?>
獲取當前正在播放音樂的專輯封面 返回 Uint8List? 包含圖片數據,如果沒有專輯封面或沒有正在播放的音樂則返回 null
override
getCurrentTrackInfo() Future<Map<String, String>?>
獲取當前正在播放的音樂信息 返回一個 Map<String, String>? 包含音樂信息,如果沒有正在播放的音樂則返回 null
override
getPlatformVersion() Future<String?>
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestMediaPermission() Future<bool>
請求訪問媒體庫的權限 返回 bool 表示是否授權成功
override
toString() String
A string representation of this object.
inherited

Operators

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