FIRModelInputs
@interface FIRModelInputs : 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
Objective-C
- (BOOL)addInput:(nonnull id)input error:(NSError *_Nullable *_Nullable)error;Parameters
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.