HeliumFlutterMethodChannel class
An implementation of HeliumFlutterPlatform that uses method channels.
- Inheritance
-
- Object
- PlatformInterface
- HeliumFlutterPlatform
- HeliumFlutterMethodChannel
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- methodChannel ↔ MethodChannel
-
The method channel used to interact with the native platform.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
canPresentUpsell(
String trigger) → Future< CanPresentUpsellResult?> -
disableRestoreFailedDialog(
) → void -
override
-
getDownloadStatus(
) → Future< String?> -
Download status of paywall
override
-
getExperimentInfoForTrigger(
String trigger) → Future< ExperimentInfo?> -
override
-
getHeliumUserId(
) → Future< String?> -
Gets helium user id
override
-
getPaywallInfo(
String trigger) → Future< PaywallInfo?> -
override
-
getUpsellWidget(
{required String trigger, PaywallEventHandlers? eventHandlers}) → Widget -
override
-
handleDeepLink(
String uri) → Future< bool> -
override
-
hasAnyActiveSubscription(
) → Future< bool> -
override
-
hasAnyEntitlement(
) → Future< bool> -
override
-
hideUpsell(
) → Future< bool> -
Hides view
override
-
initialize(
{required String apiKey, HeliumCallbacks? callbacks, HeliumPurchaseDelegate? purchaseDelegate, Widget? fallbackPaywall, String? customAPIEndpoint, String? customUserId, Map< String, dynamic> ? customUserTraits, String? revenueCatAppUserId, String? fallbackBundleAssetPath, HeliumPaywallLoadingConfig? paywallLoadingConfig}) → Future<String?> -
Initialize helium sdk at the start up of flutter application. It will download custom paywall view
override
-
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
newUserIdoverride -
paywallsLoaded(
) → Future< bool> -
Returns bool based on paywall loaded or not
override
-
presentUpsell(
{required BuildContext context, required String trigger, PaywallEventHandlers? eventHandlers, Map< String, dynamic> ? customPaywallTraits}) → Future<String?> -
Presents view based on
triggeroverride -
resetHelium(
) → void -
override
-
setCustomRestoreFailedStrings(
{String? customTitle, String? customMessage, String? customCloseButtonText}) → void -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited