Share Scheme¶
Enables sharing capabilities for generated try-on images with customizable options.
Share Feature¶
ShareFeature {
watermark: ShareWatermarkFeature | null // (1)!
icons {
share24: Icon // (2)!
}
strings {
shareButton: String // (3)!
}
dataProvider: null | Custom {
getShareText: Callback(productIds: List<String>) => String // (4)!
}
}
- Optional configuration for adding a watermark to shared content.
- Icon displayed for the share button in the interface.
- Label text for the share button in the fullscreen gallery.
- Optional
dataProvider
callback function that generates additional text to be shared along with the image.
Watermark¶
ShareWatermarkFeature {
images {
logo: Image // (1)!
}
}
- Logo image to be used as a watermark on shared content.
Sequence Diagram¶
sequenceDiagram
autonumber
actor USR as ⠀<br>User
participant APP as Your<br>App
participant BE as Your<br>Backend
participant SDK as Aiuta<br>SDK
participant API as Aiuta<br>Backend
participant GS as Storage
note over GS: Aiuta or Yours
Note over SDK,API: After successful try-on generation
USR->>SDK: Tap Share button
opt Watermark
SDK->>SDK: Draw logo on the image(s)
end
SDK->>APP: Call getShareText (product IDs)
APP-->>SDK: Return share text
SDK-->>USR: Show system share dialog
Note over SDK,USR: Generated image and optional text to share
USR->>SDK: Complete sharing