ModelInputs
class ModelInputs : NSObjectInput data for a Firebase custom model.
-
Appends an input at the next index. The index starts from 0 and is incremented each time an input is added.
Declaration
Swift
func addInput(_ input: Any) throwsParameters
inputInput data for the next index. Input can be
NSData, or a one-dimensional or multi-dimensional array ofNSNumbers (float, int, char, long).errorThe error, if any, during the operation, including
MLKitErrorDomainCode.InvalidArgumentwhen:inputis nil.- The input type is neither
NSDatanorNSArray.
Return Value
Whether the operation is successful.