AppwinAnalyticsMethodChannel class

An implementation of AppwinAnalyticsPlatform that uses method channels.

Inheritance

Constructors

AppwinAnalyticsMethodChannel()
Creates the default implementation.

Properties

hashCode → int
The hash code for this object.
no setterinherited
methodChannel → MethodChannel
The method channel used to interact with the native platform.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

flush() → Future<void>
Uploads the pending queue now. See AppwinAnalytics.flush.
override
getPlatformVersion() → Future<String?>
Host OS and version. See AppwinAnalytics.getPlatformVersion.
override
initialize({bool crashReporting = true, bool sessionReplay = true}) → Future<AppwinInitResult>
Whether this app may use Analytics. See AppwinAnalytics.initialize.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
recordBridgedError({required bool fatal, required String type, String? message, required List<Map<String, Object>> frames}) → Future<void>
Hands a Dart error to the native crash pipeline, which stores and uploads it with runtime flutter. See AppwinAnalytics.recordError.
override
replayMaskRules() → Future<ReplayMaskRules?>
maskAllText and maskAllImages of the running session replay, null when nothing records.
override
screen(String name) → Future<void>
Emits a screen_view. See AppwinAnalytics.screen.
override
setConsent(AppwinConsentState consent) → Future<void>
Relays the analytics consent. See AppwinAnalytics.setConsent.
override
setReplayFrame(Uint8List rgba, {required int width, required int height, required List<double> rects}) → Future<void>
Hands the native recorder a frame Flutter rendered: RGBA, premultiplied, width x height, with the masks of that same frame as in setReplayMasks. Only while ReplayMaskRules.captureFrames says so.
override
setReplayMasks(List<double> rects) → Future<void>
Hands the native recorder what to paint over in Flutter's surface: flat [left, top, right, bottom, ...] in logical pixels of the view, replacing the previous set.
override
toString() → String
A string representation of this object.
inherited
track(String name, {Map<String, Object?>? props}) → Future<void>
Queues a custom event. See AppwinAnalytics.track.
override

Operators

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