MethodChannelMediaExtension class
An implementation of MediaExtensionPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- MediaExtensionPlatform
- MethodChannelMediaExtension
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel → MethodChannel
-
The method channel used to interact with the native platform.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
edit(
String uri, String mimeType, {String title = 'Edit'}) → Future< bool> -
This Method sends the selected Image's
uri
to the native thread. from the Flutter thread to send results to apps which can handleACTION_EDIT
Intent ofmimeType
images/*
.override -
getIntentAction(
) → Future< MediaExtentionAction> -
This Method is triggered by the Native Thread which sends the
intentAction
anduri
information in a HashMap Structure to the Flutter thread.override -
getPlatformVersion(
) → Future< String?> -
This Method retrivies the platform version from native thread.
override
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
openWith(
String uri, String mimeType, {String title = 'Open With'}) → Future< bool> -
This Method sends the selected Image's
uri
to the native thread. from the Flutter thread to send results to apps which can handleACTION_VIEW
Intent ofmimeType
images/*
.override -
setAs(
String uri, String mimeType, {String title = 'Set as'}) → Future< bool> -
This Method sends the selected Image's
uri
to the native thread. from the Flutter thread to send results to apps which can handleACTION_ATTACH_DATA
Intent ofmimeType
images/*
.override -
setResult(
String uri) → Future< void> -
This Method sends the selected Image's
uri
to the native thread. from the Flutter thread to send results to the app which invoked our app usingACTION_PICK
INTENT.override -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited