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

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

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 appIdentifier using SKOverlay (on iOS) Returns true if the overlay was shown, false otherwise optional campaignToken and providerToken are 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