Skip to content

Status module

  • Enum: AffiseModules.STATUS (lib/module/affise_modules.dart:13)
  • Native key: "Status" (lib/module/affise_modules.dart:45)

README 520-526 — module status inspection. Also required by the deferred-deeplink APIs (README 1481, 1495).

Cross-platform. No dedicated Affise.module.status accessor; use Affise.module.getStatus(...) with AffiseModules.STATUS as the module argument.

Terminal window
flutter pub add affise_attribution_lib
flutter pub add affise_attribution_module_status

or add the dependency to pubspec.yaml:

dependencies:
affise_attribution_lib: ^1.7.16
affise_attribution_module_status: ^1.7.16

The package does not expose a Dart API of its own — it only pulls in the native module dependency:

  • Android: com.affise:module-status:1.7.16
  • iOS (CocoaPods): AffiseModule/Status 1.7.16
  • iOS (Swift Package Manager): AffiseModuleStatus 1.7.16

Module APIs (Affise.module.*, AffiseModules) remain in affise_attribution_lib.

Instead of the Flutter package you can add the native dependency to the platform project yourself (README #### Native):

  • Android: implementation "com.affise:module-status:$affise_version"
  • iOS: pod 'AffiseModule/Status', affise_version
void getStatus(AffiseModules module, OnKeyValueCallback callback);
// lib/module/attribution/affise_attribution_module.dart:41
// exposed as Affise.module.getStatus

typedef OnKeyValueCallback = void Function(List<AffiseKeyValue> data); — lib/module/on_key_value_callback.dart:3.

class AffiseKeyValue { String key; String value; } — lib/module/affise_key_value.dart:1-12.

Affise.module.getStatus(AffiseModules.STATUS, (response) {
// handle status response
});

Use the Deep linking feature page — Affise.getDeferredDeeplink and Affise.getDeferredDeeplinkValue both require this module.

Future<List<AffiseModules>> getModulesInstalled();
// lib/module/attribution/affise_attribution_module.dart:49

UNVERIFIED: ProviderType additions — the README does not enumerate.