Wishlist Scheme¶
Integrates with the host app's wishlist functionality for product management.
Wishlist Feature¶
WishlistFeature {
icons {
wishlist24: Icon // (1)!
wishlistFill24: Icon // (2)!
}
strings {
wishlistButtonAdd: String // (3)!
}
dataProvider {
wishlistProductIds: Observable<List<String>> // (4)!
setProductInWishlist: Callback(productId: String, inWishlist: Bool) // (5)!
}
}
- Icon displayed for the Wishlist button in its default state.
- Icon displayed for the Wishlist button when the product is in the wishlist.
- Label text for the "Add to Wishlist" button.
- Observable collection of product IDs currently in the wishlist.
- Callback function to add or remove a product from the wishlist.
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 Wishlist button
SDK->>APP: Toggle setProductInWishlist (product ID)
APP->>BE: Update wishlist
APP-->>SDK: Update observable wishlistProductIds
SDK->>SDK: Update wishlist button state