MparticleFlutterSdk class
The interface that implements the mParticle Dart SDK.
Constructors
Properties
-
getAppName
→ Future<
String?> -
Returns the appName set in your web SDK. There is no iOS or Android equivalent.
no setter
-
getOptOut
→ Future<
bool> -
Returns the opt out status.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- identity ↔ Identity
-
The identity API to make identity calls.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getAttributions(
) → Future< Map> -
getCurrentUser(
) → Future< User?> -
isKitActive(
{required int kit}) → Future< bool> -
Returns if a kit is active given a
kitId
. -
logCommerceEvent(
CommerceEvent commerceEvent) → Future< void> -
Logs a product commerce event with an
productActionType
, a promotion commerce event with aeventType
, and an impression commerce event if neither of the prior are implemented. -
logError(
{required String eventName, Map< String, String?> ? customAttributes}) → Future<void> -
Logs an error event with an
eventName
andcustomAttributes
. -
logEvent(
MPEvent event) → Future< void> - Logs an MPEvent
-
logPushRegistration(
{required String pushToken, String? senderId}) → Future< void> -
Logs a push registration with a
pushToken
andsenderId
. -
logScreenEvent(
ScreenEvent screenEvent) → Future< void> -
Logs a screen event (in web parlance, a 'page view') with an
eventName
,customAttributes
, andcustomFlags
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setATTStatus(
{required MPATTAuthorizationStatus attStatus, int? timestampInMillis}) → Future< void> -
Sets the
attStatus
with atimestampInMillis
for iOS -
setOptOut(
bool optOutBoolean) → Future< void> -
Sets the opt out status with an
optOutBoolean
-
toString(
) → String -
A string representation of this object.
inherited
-
upload(
) → Future< void> - Forces a manual upload of the batch.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- identityRequest ↔ IdentityRequest
-
The identity request object required to pass into Identity calls.
getter/setter pair
Static Methods
-
getInstance(
) → Future< MparticleFlutterSdk?> - Returns an active instance of MparticleFlutterSDK if the underlying platform SDK has been initialized.