mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-13 22:44:11 +08:00
[vision][types] add missing iOS apiKeyOverride option to cloud detector options
This commit is contained in:
52
packages/ml-vision/lib/index.d.ts
vendored
52
packages/ml-vision/lib/index.d.ts
vendored
@@ -237,6 +237,21 @@ export namespace MLKitVision {
|
||||
* ```
|
||||
*/
|
||||
confidenceThreshold?: number;
|
||||
|
||||
/**
|
||||
* API key to use for Cloud Vision API. If not set, the default API key from `firebase.app()` will be used.
|
||||
*
|
||||
* #### Example
|
||||
*
|
||||
* ```js
|
||||
* await firebase.mlKitVision().cloudImageLabelerProcessImage(filePath, {
|
||||
* apiKeyOverride: 'xyz123',
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* @ios
|
||||
*/
|
||||
apiKeyOverride?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -265,6 +280,13 @@ export namespace MLKitVision {
|
||||
modelType?:
|
||||
| VisionCloudLandmarkRecognizerModelType.STABLE_MODEL
|
||||
| VisionCloudLandmarkRecognizerModelType.LATEST_MODEL;
|
||||
|
||||
/**
|
||||
* API key to use for Cloud Vision API. If not set, the default API key from `firebase.app()` will be used.
|
||||
*
|
||||
* @ios
|
||||
*/
|
||||
apiKeyOverride?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -345,6 +367,21 @@ export namespace MLKitVision {
|
||||
* ```
|
||||
*/
|
||||
languageHints?: string[];
|
||||
|
||||
/**
|
||||
* API key to use for Cloud Vision API. If not set, the default API key from `firebase.app()` will be used.
|
||||
*
|
||||
* #### Example
|
||||
*
|
||||
* ```js
|
||||
* await firebase.mlKitVision().cloudTextRecognizerProcessImage(filePath, {
|
||||
* apiKeyOverride: 'xyz123',
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* @ios
|
||||
*/
|
||||
apiKeyOverride?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -383,6 +420,21 @@ export namespace MLKitVision {
|
||||
* ```
|
||||
*/
|
||||
languageHints?: string[];
|
||||
|
||||
/**
|
||||
* API key to use for Cloud Vision API. If not set, the default API key from `firebase.app()` will be used.
|
||||
*
|
||||
* #### Example
|
||||
*
|
||||
* ```js
|
||||
* await firebase.mlKitVision().cloudTextRecognizerProcessImage(filePath, {
|
||||
* apiKeyOverride: 'xyz123',
|
||||
* });
|
||||
* ```
|
||||
*
|
||||
* @ios
|
||||
*/
|
||||
apiKeyOverride?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user