FileLauncherPlatform class abstract
Interface implemented by native file launchers.
Arguments arrive validated and normalized by FileLauncher.
- Inheritance
-
- Object
- PlatformInterface
- FileLauncherPlatform
- Implementers
Constructors
- FileLauncherPlatform()
- Constructs a platform implementation with a verified token.
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
-
clearCache(
) → Future< bool> - Deletes the copies this plugin created. Returns whether it succeeded.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
open(
String filePath, {String? title, String? mimeType, bool showAppChooser = false, }) → Future< OpenFileResult> - Opens a local file using native presentation.
-
openBytes(
Uint8List bytes, {required String fileName, String? title, String? mimeType, bool showAppChooser = false, }) → Future< OpenFileResult> -
Writes
bytesto a private cache file namedfileName, then opens it. - Presents the system share sheet for a local file.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ FileLauncherPlatform
-
The current platform implementation.
getter/setter pair