The SDK exposes the following methods:
This method initializes the MySizeID Engine SDK. It should be invoked from a subclass of the Application class (which needs to be registered in AndroidManifest).
Parameters:
- context: The context required for initializing the SDK is a subclass of an Application.
- sdkKey: Your retailer’s key.
- sdkSecret: Your retailer’s secret.
This method establishes a session required for a measurement. This should be invoked in your main activity’s onCreate method. This is mandatory before starting a measurement.
Parameters:
- context: The context for establishing a session.
This method terminates the session.
This method starts the measurement flow.
Parameters:
- userID: The user id of the user.
- isMale: A flag that represents the gender of the measured user (true <=> male, false <=> female).
- measureMode: The measurement you wish to initiate. It accepts an enum for specifying the measurement mode, e.g. MeasureMode.ChestBreadth.
- weight: The weight of the measured user.
- height: The height of the measured user.
This method retrieves the appropriate size of the user according to his measurements.
Parameters:
- integrationCode: The integration code of the retailer’s size chart.
- userID: The user id of the user.
- onSuccess: The callback called whenever the size retrieved successfully. It accepts the size as a string parameter.
- onFail: The callback called whenever the size request has failed for some reason. It accepts the failure error as a string parameter.
This method resets all the user’s measurements and sets its height, weight and gender according to the parameters.
Parameters:
- userID: The user id of the user.
- isMale: A flag that represents the new gender of the measured user (true <=> male, false <=> female).
- weight: The new weight of the measured user.
- height: The new height of the measured user.
Comments
0 comments
Please sign in to leave a comment.