PromotionOverlayPlatform class abstract
The interface that implementations of promotion_overlay must implement.
Platform implementations should extend this class rather than implement it as promotion_overlay
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
PromotionOverlayPlatform methods.
- Inheritance
-
- Object
- PlatformInterface
- PromotionOverlayPlatform
- Implementers
Constructors
- PromotionOverlayPlatform()
- Constructs a PromotionOverlayPlatform.
Properties
Methods
-
dismiss(
) → Future< bool> - Dismisses the promotion overlay if it is currently being shown
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
show(
String appIdentifier, String? campaignToken, String? providerToken, bool dismissOnBackground, int position) → Future< bool> -
Shows the promotion overlay with
appIdentifierusing SKOverlay (on iOS) Returns true if the overlay was shown, false otherwise optionalcampaignTokenandproviderTokenare used for attribution -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- instance ↔ PromotionOverlayPlatform
-
The default instance of PromotionOverlayPlatform to use.
getter/setter pair