FirebaseMLModelInterpreter Framework Reference

FIRModelInputs


@interface FIRModelInputs : NSObject

Input 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

    input

    Input data for the next index. Input can be NSData, or a one-dimensional or multi-dimensional array of NSNumbers (float, int, char, long).

    error

    The error, if any, during the operation, including MLKitErrorDomainCode.InvalidArgument when:

    • input is nil.
    • The input type is neither NSData nor NSArray.

    Return Value

    Whether the operation is successful.