CobiFlutterSharePlatform class abstract

The interface that implementations of cobi_flutter_share must implement.

Platform implementations should extend this class rather than implement it as cobi_flutter_share does not consider newly added methods to be breaking changes. Extending this class (using extends) ensures that the subclass will get the default implementation, while platform implementations that implements this interface will be broken by newly added CobiFlutterSharePlatform methods.

Inheritance
  • Object
  • PlatformInterface
  • CobiFlutterSharePlatform
Implementers

Constructors

CobiFlutterSharePlatform()
Constructs a CobiFlutterSharePlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
isMock bool
Only mock implementations should set this to true.
no setter
onShareReceived Stream<ShareData>
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

abortFetch(String uri) Future<void>
addShareTargets(List<ShareTarget> targets) Future<bool?>
This adds multiple share targets. The returned future resolves to false if at least one of the targets could not be added.
continueFetch(String uri) Future<void>
fetchContents(String uri, [int? chunkSize]) Stream<ShareItemChunk>?
initialize() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
pauseFetch(String uri) Future<void>
removeAllShareTargets() Future<bool?>
This removes all specific share targets. If anythign goes wrong, the returned future resolves to false.
removeShareTargets(List<String> ids) Future<bool?>
This removes the share target with given identifier. If any of the share targets couldn't be removed the returned future resolves to false.
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance CobiFlutterSharePlatform
The default instance of CobiFlutterSharePlatform to use, defaults to CobiFlutterSharePlatformUnsupported.
getter/setter pair