Onboarding Scheme¶
Sets up the onboarding process to guide users through the SDK's features and capabilities.
Onboarding Feature¶
OnboardingFeature {
howItWorksPage: OnboardingHowItWorksPageFeature // (1)!
bestResultsPage: OnboardingBestResultsPageFeature | null // (2)!
strings {
onboardingButtonNext: String // (3)!
onboardingButtonStart: String // (4)!
}
shapes {
onboardingImageL: Shape // (5)!
onboardingImageS: Shape // (6)!
}
dataProvider: BuiltIn | Custom {
isOnboardingCompleted: Observable<Bool> // (7)!
completeOnboarding: Callback() // (8)!
}
}
- Configures the first page of onboarding that demonstrates how virtual try-on works through interactive examples.
- Sets up an optional page showing examples of photos that yield the best try-on results.
- Defines the text label for the navigation button to proceed to the next onboarding page.
- Specifies the text label for the button that completes onboarding and starts the main interface.
- Controls the shape configuration for large images displayed in the onboarding process.
- Sets the shape configuration for small images used in the onboarding interface.
- Provides an observable property that tracks whether the user has completed the onboarding process.
- Defines the callback function to mark onboarding as completed when the user finishes the process.
Slides¶
How It Works¶
OnboardingHowItWorksPageFeature {
images {
onboardingHowItWorksItems: List<{ // (6)!
itemPhoto: Image // (1)!
itemPreview: Image // (2)!
}>
}
strings {
onboardingHowItWorksPageTitle: String | null // (3)!
onboardingHowItWorksTitle: String // (4)!
onboardingHowItWorksDescription: String // (5)!
}
}
- Defines the example photo showing a person wearing the item for the try-on demonstration.
- Specifies the flatlay image of the item with a transparent background for the try-on preview.
- Sets an optional title for the "How It Works" page at the top of the screen.
- Defines the main title displayed below the interactive try-on demonstration section.
- Configures the descriptive text explaining how the virtual try-on feature works.
- List of exactly 3 objects, each containing images for the interactive onboarding.
Best Results¶
OnboardingBestResultsPageFeature {
images {
onboardingBestResultsGood: List<Image> // (1)!
onboardingBestResultsBad: List<Image> // (2)!
}
icons {
onboardingBestResultsGood24: Icon // (3)!
onboardingBestResultsBad24: Icon // (4)!
}
strings {
onboardingBestResultsPageTitle: String | null // (5)!
onboardingBestResultsTitle: String // (6)!
onboardingBestResultsDescription: String // (7)!
}
styles {
reduceOnboardingBestResultsShadows: Bool // (8)!
}
}
- List of exactly 2 example photos that demonstrate optimal conditions for virtual try-on results.
- List of exactly 2 of example photos showing conditions that may lead to suboptimal try-on results.
- Icon displayed next to good example photos to indicate positive results.
- Icon displayed next to bad example photos to indicate potential issues.
- Optional title for the "Best Results" page at the top of the screen.
- Main title displayed above the example photos section.
- Descriptive text explaining what makes a good photo for virtual try-on.
- Controls whether to reduce shadow effects on example photos for better visibility.
Deprecated
Examples of good source photos are now included into the Image Picker, so we recommend disabling this slide to avoid overwhelming the user with onboarding