MusicInfoPluginPlatform class abstract
- Inheritance
-
- Object
- PlatformInterface
- MusicInfoPluginPlatform
- Implementers
Constructors
- MusicInfoPluginPlatform()
- Constructs a MusicInfoPluginPlatform.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getCurrentTrackArtwork(
) → Future< Uint8List?> - 獲取當前正在播放音樂的專輯封面 返回 Uint8List? 包含圖片數據,如果沒有專輯封面或沒有正在播放的音樂則返回 null
-
getCurrentTrackInfo(
) → Future< Map< String, String> ?> - 獲取當前正在播放的音樂信息 返回一個 Map<String, String>? 包含音樂信息,如果沒有正在播放的音樂則返回 null
-
getPlatformVersion(
) → Future< String?> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestMediaPermission(
) → Future< bool> - 請求訪問媒體庫的權限 返回 bool 表示是否授權成功
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ MusicInfoPluginPlatform
-
The default instance of MusicInfoPluginPlatform to use.
getter/setter pair