MethodChannelFileLauncher class

Native method-channel implementation of FileLauncherPlatform.

Inheritance

Constructors

MethodChannelFileLauncher()

Properties

hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
Channel used to communicate with Android and iOS.
final
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.
override
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.
override
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.
override
share(String filePath, {String? title, String? mimeType, Rect? sharePositionOrigin}) → Future<OpenFileResult>
Presents the system share sheet for a local file.
override
toString() → String
A string representation of this object.
inherited

Operators

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