Shoot builder is an object where all the configuration settings are set up for Spyne Android SDK. Shoot builder expects basic parameters and allows you to use advanced functionalities as well.
Shoot builder function expects 4 values,
- context is the current activity context
- userId is a string value and needs to be an Email ID.
- skuListener is the callback interface which you have to implement in your activity/fragment and over-ride the given methods,
- onSkuCreated: This callback is returned on project creation & returns SpyneSKUId. SpyneSKUId will be useful on fetching processed images using our Public API.
- onShootCompleted: This callback is returned on project completion. Please note, in case of reshoot, this callback is returned will extra parameter isReshoot. This parameter will be true in cases where reshoot has taken place.
- Angle is the integer value and denotes the count of exterior angles to be shot by the user.
fun onShootCompleted(skuId: String, isReshoot: Boolean)
ShootID expects a string value and is a mandatory key which will be mapped to the unique Spyne SKU Id.
Do note, ShootID does not allow blank values and special characters.
Spyne SDK allows user to Shoot through guided flow as well as Upload images. Before initiating the SDK shoot, shoot type expects a specific value.
Shoot will initiate the Spyne guided Shoot flow
Spyne SDK allows you to add advanced features as per your requirement. You can append these advance features in the Shoot Builder function before starting it, as shown below. To know more about the Advanced SDK configurations, please click here.
Updated 20 days ago