FIRVisionCloudDetectorOptions.h 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #import <Foundation/Foundation.h>
  2. NS_ASSUME_NONNULL_BEGIN
  3. /**
  4. * @enum VisionCloudModelType
  5. * Type of model to use in vision cloud detection API.
  6. */
  7. typedef NS_ENUM(NSUInteger, FIRVisionCloudModelType) {
  8. /** Stable model. */
  9. FIRVisionCloudModelTypeStable,
  10. /** Latest model. */
  11. FIRVisionCloudModelTypeLatest,
  12. } NS_SWIFT_NAME(VisionCloudModelType);
  13. /**
  14. * Generic options of a vision cloud detector.
  15. */
  16. NS_SWIFT_NAME(VisionCloudDetectorOptions)
  17. @interface FIRVisionCloudDetectorOptions : NSObject
  18. /**
  19. * Type of model to use in vision cloud detection API. Defaults to `.stable`.
  20. */
  21. @property(nonatomic) FIRVisionCloudModelType modelType;
  22. /**
  23. * Maximum number of results to return. Defaults to 10. Does not apply to
  24. * `VisionCloudTextDetector` and `VisionCloudDocumentTextDetector`.
  25. */
  26. @property(nonatomic) NSUInteger maxResults;
  27. /**
  28. * API key to use for Cloud Vision API. If `nil`, the default API key from FirebaseApp will be
  29. * used.
  30. */
  31. @property(nonatomic, copy, nullable) NSString *APIKeyOverride;
  32. @end
  33. NS_ASSUME_NONNULL_END