se_flutter_sdk_us 1.5.10
se_flutter_sdk_us: ^1.5.10 copied to clipboard
This is the Flutter SDK of SolarEngine US.
se_flutter_sdk_us #
SolarEngine Flutter SDK for overseas apps. See the SolarEngine integration guide for the complete setup.
Separated attribution #
The legacy onAttributionSuccess, onAttributionFail, and getAttribution()
APIs remain available. The two modes are mutually exclusive: when the option is
omitted or false, only the legacy callbacks run; when it is true, only the
UA and RE callbacks run. To receive attribution separately, enable the option
and register the callbacks before initialization:
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();
Only separated mode produces UA/RE caches. Both new getters return null until
their cached attribution result is ready.