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
- Constructs a CobiFlutterSharePlatform.
Properties
Methods
-
abortFetch(
String uri) → Future< void> - 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> - This removes all specific share targets. If anythign goes wrong, the returned future resolves to false.
- 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