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, Rect? sharePositionOrigin}) → Future<OpenFileResult>
Opens a local file using native presentation.
openBytes(Uint8List bytes, {required String fileName, String? title, String? mimeType, bool showAppChooser = false, Rect? sharePositionOrigin}) → Future<OpenFileResult>
Writes bytes to a private cache file named fileName, then opens it.
share(String filePath, {String? title, String? mimeType, Rect? sharePositionOrigin}) → Future<OpenFileResult>
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