parseResult

open override fun parseResult(resultCode: Int, intent: Intent?): SpreeAITryOn.Result

Parses the result from the SpreeAIActivity into a SpreeAITryOn.Result.

This method converts the integer resultCode and the data from the result Intent into one of the sealed SpreeAITryOn.Result types, providing a structured and type-safe outcome.

Return

A SpreeAITryOn.Result representing the outcome of the try-on flow.

Parameters

resultCode

The integer result code returned from the activity (e.g., RESULT_OK).

intent

The Intent returned from the activity, which may contain extra data.