AudioMedia class final
An audio recording or file.
Constructors
- AudioMedia({required File file, Uint8List? bookmark, String? name, bool isTemporaryCopy = false})
-
Creates an audio carrier.
const
Properties
- bookmark → Uint8List?
-
Security-scoped bookmark from
XFiles.pick(iOS/macOS) or content-URI bytes (Android). Persisted inpending_uploads.bookmarkso a cold-restart upload can re-acquire sandbox access. Null for in-sandbox files (camera, gallery, paste).finalinherited - file → File
-
Local file to read and upload. Always present.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- isTemporaryCopy → bool
-
True when file is an app-owned ephemeral copy the picker made for us
(
XPickedFile.isTemporaryCopy— the Android SAF picker copies acontent://source into the app cache). The upload promotes such a source into the managed cache after upload instead of recording a source row that points at the soon-cleared temp. False for durable user-chosen paths.finalinherited - name → String?
-
User-facing filename from the picker's display name (
XPickedFile.name), when known. Preferred over the source path's basename forFileInfo.name: on Android the SAF picker stream-copies the content URI to a<appCache>/ux_pick/{ts}_{name}temp, so the path basename is mangled with a timestamp. Null for camera/gallery/paste (no display name).finalinherited - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited