CobiFlutterShare class

The main class for receiving shared data

Properties

hashCode int
The hash code for this object.
no setterinherited
onShareReceived Stream<ShareData>
This Stream is a broadcast stream that informs you about incoming shared data.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addShareTarget(ShareTarget target) Future<bool?>
This method adds a share target defined with ShareTarget The returned future resolves to false if the target could not be added. To update an existing share target, re-add it with the same ShareTarget.id.
addShareTargets(List<ShareTarget> targets) Future<bool?>
This adds multiple share targets in one go. The returned future resolves to false if the target could not be added. To update an existing share target, re-add it with the same ShareTarget.id.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAllShareTargets() Future<bool?>
This removes all share targets. It does not remove the general share target for the app. If anything goes wrong when removing them the returned future resolves to false.
removeShareTarget(String id) Future<bool?>
This removes the share target identified by id. If anything goes wrong when removing it the returned future resolves to false.
removeShareTargets(List<String> ids) Future<bool?>
This removes the share targets identified by ids. If anything goes wrong when removing any of the targets 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 CobiFlutterShare
This returns a singleton that controls share targets and received shared data
no setter