HeliumFlutterPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • HeliumFlutterPlatform
Implementers

Constructors

HeliumFlutterPlatform.new()
Constructs a HeliumFlutterPlatform.

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getDownloadStatus() Future<String?>
Download status of paywall
getHeliumUserId() Future<String?>
Gets helium user id
getUpsellWidget({required String trigger}) Widget
hideUpsell() Future<bool>
Hides view
initialize({required HeliumCallbacks callbacks, required Widget fallbackPaywall, required String apiKey, required String customAPIEndpoint, String? customUserId, Map<String, dynamic>? customUserTraits, String? revenueCatAppUserId}) Future<String?>
Initialize helium sdk at the start up of flutter application. It will download custom paywall view
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
overrideUserId({required String newUserId, required Map<String, dynamic> traits}) Future<String?>
Overrides user id to given newUserId
paywallsLoaded() Future<bool>
Returns bool based on paywall loaded or not
presentUpsell({required BuildContext context, required String trigger}) Future<String?>
Presents view based on trigger
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance HeliumFlutterPlatform
The default instance of HeliumFlutterPlatform to use.
getter/setter pair