MoonetixPlatform class abstract

The interface each platform implementation of the Moonetix plugin implements. App code uses Moonetix instead.

Platform implementations extend this class (not implement it), so new methods can be added without breaking them.

Inheritance
  • Object
  • PlatformInterface
  • MoonetixPlatform
Implementers

Constructors

MoonetixPlatform()
Constructs a MoonetixPlatform.

Properties

events → Stream<MoonetixEvent>
Native events: opened, closed and errors reported by the native SDK.
no setter
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

init(String appId) → Future<void>
Stores the app ID in the native SDK. Validation already happened in Dart; the native SDK validates again.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
open(String token, MoonetixOptions options) → Future<void>
Opens the offerwall with a validated session token. Errors that happen later (network, expired token) arrive on events.
toString() → String
A string representation of this object.
inherited

Operators

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

Static Properties

instance ↔ MoonetixPlatform
The implementation in use. Defaults to MethodChannelMoonetix.
getter/setter pair