YicAttributionPlatform class abstract

YIC 归因平台接口(BDA + GDT)。

这是一层 Dart 抽象,不是 Android 专用文件:

  • 业务入口 YicAttributionPlugin 通过这里调用具体实现
  • 默认实现是 MethodChannelYicAttribution
  • 单测可通过替换 instance 注入 mock
Inheritance
  • Object
  • PlatformInterface
  • YicAttributionPlatform
Implementers

Constructors

YicAttributionPlatform()

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

bdaEnableDelayUpload() Future<bool>
bdaEnableIdfa(bool enable) Future<bool>
bdaGetClickId() Future<String?>
bdaInitialize({required String oaid}) → void
bdaOnActivation() → void
bdaOnRegister() → void
bdaRegisterOptionalData(Map<String, dynamic> data) Future<bool>
bdaStartSendingEvents() Future<bool>
bdaTrackPurchase(int payAmount, {String contentType = 'recharge', String contentName = '会员', String orderId = '', String payType = '支付宝'}) Future<bool>
gdtInitialize({required String actionSetId, required String secretKey, bool privacyEnable = true, String channelId = ''}) Future<bool>
gdtReportPurchaseAction({required String type, required String name, required String contentId, required int number, required String channel, required String realCurrency, required int amount, required bool isSuccess}) Future<bool>
gdtStart() Future<bool>
gdtTrackEvent({required String name, Map<String, dynamic>? params}) Future<bool>
gdtTrackStartApp({String? openUrl}) Future<bool>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Properties

instance YicAttributionPlatform
当前生效的平台实现。
getter/setter pair