[How to] Configure the PD to have a size guarantee?
Set a Gender value in the VTO
To set a PD value in the VTO based on gender, use the setUserInfo method (see API Reference > setUserInfo). This will set the PD used in the VTO module based on the gender option the user chooses.
Set a PD value in the VTO
To set a PD value in the VTO, use the setPupillaryDistance method (see API Reference > setPupillaryDistance). This will set the PD used in the VTO module in order to ensure that the size of the frame in the VTO experience is accurate.
How to get the user's PD
If you do not have access to this information and still want to provide an accurate VTO experience, add a user input to allow end-users to provide this information during the VTO experience.
For instance, you can choose to display a slider and let the user select their PD value, such as in this example.