Share¶
Enables sharing capabilities for generated try-on images with customizable options.
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
dataProvidercallback function that generates additional text to be shared along with the image.
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
{"Callback": "/sdk/developer/definitions/#callback", "Icon": "/sdk/developer/definitions/#icon", "List": "/sdk/developer/definitions/#list", "ShareWatermarkFeature": "watermark/", "String": "/sdk/developer/definitions/#string", "null": "/sdk/developer/definitions/#optional"}