FIRLocalModel.h 944 B

1234567891011121314151617181920212223242526272829303132
  1. #import <Foundation/Foundation.h>
  2. NS_ASSUME_NONNULL_BEGIN
  3. /** A model stored locally on the device. */
  4. NS_SWIFT_NAME(LocalModel)
  5. @interface FIRLocalModel : NSObject
  6. /** The model name. */
  7. @property(nonatomic, copy, readonly) NSString *name;
  8. /** An absolute path to the model file stored locally on the device. */
  9. @property(nonatomic, copy, readonly) NSString *path;
  10. /**
  11. * Creates an instance of `LocalModel` with the given name and file path.
  12. *
  13. * @param name The name of the local model. Within the same Firebase app, all local models should
  14. * have distinct names.
  15. * @param path An absolute path to the model file stored locally on the device.
  16. * @return A new `LocalModel` instance.
  17. */
  18. - (instancetype)initWithName:(NSString *)name
  19. path:(NSString *)path NS_DESIGNATED_INITIALIZER
  20. NS_SWIFT_NAME(init(name:path:));
  21. /** Unavailable. */
  22. - (instancetype)init NS_UNAVAILABLE;
  23. @end
  24. NS_ASSUME_NONNULL_END