Control Sending Data
Sentiance.shared.submitDetections { result, error in
guard let result = result else {
// Error
print("Error: \(error!.failureReason)")
return
}
// Successfully submitted
}sentiance.submitDetections().addOnCompleteListener { operation ->
if (operation.isSuccessful) {
Log.d(TAG, "Detections submitted successfully.")
} els
val error = operation.error
Log.e(TAG, "submitDetections failed with reason ${error.reason.name}.")
}
}Last updated