ActivityButton class
Class that represents a custom button to show in SFSafariViewController
's toolbar.
When tapped, it will invoke a Share or Action Extension bundled with your app.
The default VoiceOver description of this button is the CFBundleDisplayName
set in the extension's Info.plist
.
Check Official Apple App Extensions for more details.
Officially Supported Platforms/Implementations:
- iOS
Constructors
- ActivityButton({required UIImage templateImage, required String extensionIdentifier})
Properties
- extensionIdentifier ↔ String
-
The name of the App or Share Extension to be called.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- templateImage ↔ UIImage
-
The name of the image asset or file.
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> - Converts instance to a map.
-
toMap(
) → Map< String, dynamic> - Converts instance to a map.
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
fromMap(
Map< String, dynamic> ? map) → ActivityButton? - Gets a possible ActivityButton instance from a Map value.