launch abstract method

Future<void> launch({
  1. required String sdkApiKey,
  2. required IaCardLinkFlowType flowType,
  3. required String pharmacyId,
  4. required IaCardLinkConsentStatus consentStatus,
  5. required String phoneNumber,
  6. required String userId,
  7. required IaCardLinkFinishAction finishAction,
  8. String? canCode,
  9. String? cardName,
  10. int? primaryColor,
  11. int? buttonsColor,
  12. int? textLinkColor,
  13. int? bottomNavigationColor,
  14. IaCardLinkEnvironment? environment,
  15. bool? saveCardEnabled,
  16. String? appId,
})

Launches the CardLink experience.

Parameters:

  • sdkApiKey: The SDK API key for authentication (platform-specific).
  • flowType: The type of CardLink flow to launch (main flow or saved cards).
  • pharmacyId: The pharmacy identifier.
  • consentStatus: Initial consent status for the user.
  • phoneNumber: User's phone number.
  • userId: User identifier for card storage.
  • canCode: Optional pre-filled CAN code.
  • cardName: Optional name for the card being saved.
  • primaryColor: Optional primary UI color (as integer ARGB value).
  • buttonsColor: Optional buttons UI color (as integer ARGB value).
  • textLinkColor: Optional text link UI color (as integer ARGB value).
  • bottomNavigationColor: Optional bottom navigation UI color (as integer ARGB value).
  • environment: Optional SDK environment (defaults to production).
  • saveCardEnabled: Optional flag to enable card saving (defaults to false).
  • finishAction: Determines what happens with prescriptions after NFC scanning.
  • appId: Optional application ID (maps to applicationId on Android and appID on iOS).

Implementation

Future<void> launch({
  required String sdkApiKey,
  required IaCardLinkFlowType flowType,
  required String pharmacyId,
  required IaCardLinkConsentStatus consentStatus,
  required String phoneNumber,
  required String userId,
  required IaCardLinkFinishAction finishAction,
  String? canCode,
  String? cardName,
  int? primaryColor,
  int? buttonsColor,
  int? textLinkColor,
  int? bottomNavigationColor,
  IaCardLinkEnvironment? environment,
  bool? saveCardEnabled,
  String? appId,
});