Infrastructure medium complexity mobile
0
Dependencies
1
Dependents
0
Entities
0
Integrations

Description

Wraps the iOS and Android native share sheet APIs to allow peer mentors to share their certificate as an image or PDF. Converts the Flutter-rendered certificate widget to a raster image or generates a PDF representation before passing it to the platform share intent. Abstracts platform differences between iOS (UIActivityViewController) and Android (Intent.ACTION_SEND).

Feature: Digital Peer Mentor Certificate

certificate-share-adapter

Responsibilities

  • Convert rendered certificate widget to shareable image or PDF bytes
  • Invoke iOS native share sheet via platform channel
  • Invoke Android native share intent via platform channel
  • Handle share cancellation and error states gracefully

Interfaces

shareAsImage(widgetKey, fileName)
shareAsPdf(certificateData, fileName)
captureWidgetAsBytes(widgetKey)
generatePdf(certificateData)
getPlatformShareChannel()

Relationships

Dependents (1)

Components that depend on this component