Skip to main content

se_flutter_sdk_cn 1.5.13 copy "se_flutter_sdk_cn: ^1.5.13" to clipboard
se_flutter_sdk_cn: ^1.5.13 copied to clipboard

This is the Flutter SDK of SolarEngine CN.

se_flutter_sdk_cn #

SolarEngine Flutter SDK(中国区)。完整接入说明请参阅 SolarEngine 帮助中心。

HarmonyOS Flutter 接入请先阅读 HarmonyOS 集成说明。Flutter 工具会自动生成插件 HAR、 插件注册和工程模块;Core 依赖由 OHPM 源解析,使用本地 HAR 时由客户按文档配置 override。 宿主应用仍需在 entry 模块声明 SDK 所需权限。OAID 授权由插件在 Flutter 初始化前自动处理;只有接入 DeepLink 时才需要在 EntryAbility 转发冷/热启动链接。

分离归因 #

原有 onAttributionSuccess、onAttributionFail 和 getAttribution() 接口继续保留。 新旧归因模式互斥:未设置开关或设置为 false 时仅旧回调生效;设置为 true 时仅 UA/RE 新回调生效。需要分别获取 UA 与 RE 归因结果时,在初始化前开启开关并设置回调:

final config = SolarEngineConfig()
  ..enableSeparatedAttribution = true
  ..onUAAttributionSuccess = (data) {}
  ..onUAAttributionFail = (code) {}
  ..onREAttributionSuccess = (data) {}
  ..onREAttributionFail = (code) {};

SolarEngine.initializeWithAppkey(appKey, config);

final uaData = await SolarEngine.getUAAttributionData();
final reData = await SolarEngine.getREAttributionData();

仅分离归因模式会生成 UA/RE 缓存;缓存尚未生成时,两个新 getter 均返回 null。

1
likes
120
points
1.15k
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

This is the Flutter SDK of SolarEngine CN.

Homepage

License

Apache-2.0 (license)

Dependencies

flutter, plugin_platform_interface

More

Packages that depend on se_flutter_sdk_cn

Packages that implement se_flutter_sdk_cn