From 3419b1c09c5f1e469311a04cc6ea32c6caabdfee Mon Sep 17 00:00:00 2001 From: zhanglei Date: Fri, 12 Sep 2025 15:29:46 +0800 Subject: [PATCH] interface_undefined Signed-off-by: zhanglei --- api/@ohos.multimedia.camera.d.ts | 266 +++++++++++++++---------------- 1 file changed, 133 insertions(+), 133 deletions(-) diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index 32a2d4b1df..3cf6b5e614 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -917,7 +917,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getSupportedOutputCapability(camera: CameraDevice, mode: SceneMode): CameraOutputCapability; + getSupportedOutputCapability(camera: CameraDevice, mode: SceneMode): CameraOutputCapability | undefined; /** * Determine whether camera is muted. @@ -935,7 +935,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - isCameraMuted(): boolean; + isCameraMuted(): boolean | undefined; /** * Determine whether camera mute is supported. @@ -955,7 +955,7 @@ declare namespace camera { * @since 13 dynamic * @since 20 static */ - isCameraMuteSupported(): boolean; + isCameraMuteSupported(): boolean | undefined; /** * Mute camera. @@ -1026,7 +1026,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - createCameraInput(camera: CameraDevice): CameraInput; + createCameraInput(camera: CameraDevice): CameraInput | undefined; /** * Creates a CameraInput instance by camera position and type. @@ -1072,7 +1072,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - createCameraInput(position: CameraPosition, type: CameraType): CameraInput; + createCameraInput(position: CameraPosition, type: CameraType): CameraInput | undefined; /** * Creates a PreviewOutput instance. @@ -1109,7 +1109,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - createPreviewOutput(profile: Profile, surfaceId: string): PreviewOutput; + createPreviewOutput(profile: Profile, surfaceId: string): PreviewOutput | undefined; /** * Creates a PreviewOutput instance without profile. @@ -1137,7 +1137,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - createPreviewOutput(surfaceId: string): PreviewOutput; + createPreviewOutput(surfaceId: string): PreviewOutput | undefined; /** * Creates a PhotoOutput instance. @@ -1197,7 +1197,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - createPhotoOutput(profile?: Profile): PhotoOutput; + createPhotoOutput(profile?: Profile): PhotoOutput | undefined; /** * Creates a VideoOutput instance. @@ -1234,7 +1234,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - createVideoOutput(profile: VideoProfile, surfaceId: string): VideoOutput; + createVideoOutput(profile: VideoProfile, surfaceId: string): VideoOutput | undefined; /** * Creates a VideoOutput instance without profile. @@ -1262,7 +1262,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - createVideoOutput(surfaceId: string): VideoOutput; + createVideoOutput(surfaceId: string): VideoOutput | undefined; /** * Creates a MetadataOutput instance. @@ -1296,7 +1296,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - createMetadataOutput(metadataObjectTypes: Array): MetadataOutput; + createMetadataOutput(metadataObjectTypes: Array): MetadataOutput | undefined; /** * Creates a DepthDataOutput instance. @@ -1310,7 +1310,7 @@ declare namespace camera { * @since 13 dynamic * @since 20 static */ - createDepthDataOutput(profile: DepthProfile): DepthDataOutput; + createDepthDataOutput(profile: DepthProfile): DepthDataOutput | undefined; /** * Gets a CaptureSession instance. @@ -1352,7 +1352,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - createSession(mode: SceneMode): T; + createSession(mode: SceneMode): T | undefined; /** * Queries a specified device based on position and type. @@ -1557,7 +1557,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - isPrelaunchSupported(camera: CameraDevice): boolean; + isPrelaunchSupported(camera: CameraDevice): boolean | undefined; /** * Sets the camera prelaunch configuration. @@ -1658,7 +1658,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - createDeferredPreviewOutput(profile?: Profile): PreviewOutput; + createDeferredPreviewOutput(profile?: Profile): PreviewOutput | undefined; /** * Check if the device has a torch. @@ -1676,7 +1676,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - isTorchSupported(): boolean; + isTorchSupported(): boolean | undefined; /** * Check if a specifies torch mode is supported. @@ -1712,7 +1712,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getTorchMode(): TorchMode; + getTorchMode(): TorchMode | undefined; /** * Set torch mode to the device. @@ -3497,7 +3497,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - hasFlash(): boolean; + hasFlash(): boolean | undefined; /** * Checks whether a specified flash mode is supported. @@ -3530,7 +3530,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - isFlashModeSupported(flashMode: FlashMode): boolean; + isFlashModeSupported(flashMode: FlashMode): boolean | undefined; /** * Checks whether lcd flash is supported. @@ -3543,7 +3543,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - isLcdFlashSupported(): boolean; + isLcdFlashSupported(): boolean | undefined; } /** @@ -3583,7 +3583,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getFlashMode(): FlashMode; + getFlashMode(): FlashMode | undefined; /** * Sets flash mode. @@ -3784,7 +3784,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - isExposureModeSupported(aeMode: ExposureMode): boolean; + isExposureModeSupported(aeMode: ExposureMode): boolean | undefined; /** * Query the exposure compensation range. @@ -3814,7 +3814,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getExposureBiasRange(): Array; + getExposureBiasRange(): Array | undefined; /** * Checks whether a specified exposure metering mode is supported. @@ -3829,7 +3829,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - isExposureMeteringModeSupported(aeMeteringMode: ExposureMeteringMode): boolean; + isExposureMeteringModeSupported(aeMeteringMode: ExposureMeteringMode): boolean | undefined; } /** @@ -3869,7 +3869,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getExposureMode(): ExposureMode; + getExposureMode(): ExposureMode | undefined; /** * Sets Exposure mode. @@ -3910,7 +3910,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getMeteringPoint(): Point; + getMeteringPoint(): Point | undefined; /** * Set the center point of the metering area. @@ -3980,7 +3980,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getExposureValue(): double; + getExposureValue(): double | undefined; /** * Gets current exposure metering mode. @@ -3993,7 +3993,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - getExposureMeteringMode(): ExposureMeteringMode; + getExposureMeteringMode(): ExposureMeteringMode | undefined; /** * Sets exposure metering mode. @@ -4322,7 +4322,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - isFocusModeSupported(afMode: FocusMode): boolean; + isFocusModeSupported(afMode: FocusMode): boolean | undefined; /** * Checks whether a focus assist is supported. @@ -4334,7 +4334,7 @@ declare namespace camera { * @systemapi * @since 12 dynamic */ - isFocusAssistSupported(): boolean; + isFocusAssistSupported(): boolean | undefined; /** * Checks whether a specified focus range type is supported. @@ -4351,7 +4351,7 @@ declare namespace camera { * @since 15 dynamic * @since 20 static */ - isFocusRangeTypeSupported(type: FocusRangeType): boolean; + isFocusRangeTypeSupported(type: FocusRangeType): boolean | undefined; /** * Checks whether a specified focus driven type is supported. @@ -4368,7 +4368,7 @@ declare namespace camera { * @since 15 dynamic * @since 20 static */ - isFocusDrivenTypeSupported(type: FocusDrivenType): boolean; + isFocusDrivenTypeSupported(type: FocusDrivenType): boolean | undefined; } /** @@ -4408,7 +4408,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getFocusMode(): FocusMode; + getFocusMode(): FocusMode | undefined; /** * Sets focus mode. @@ -4469,7 +4469,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getFocusPoint(): Point; + getFocusPoint(): Point | undefined; /** * Gets current focal length. @@ -4489,7 +4489,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getFocalLength(): double; + getFocalLength(): double | undefined; /** * Gets current focus assist. @@ -4528,7 +4528,7 @@ declare namespace camera { * @since 15 dynamic * @since 20 static */ - getFocusRange(): FocusRangeType; + getFocusRange(): FocusRangeType | undefined; /** * Sets focus range type. @@ -4559,7 +4559,7 @@ declare namespace camera { * @since 15 dynamic * @since 20 static */ - getFocusDriven(): FocusDrivenType; + getFocusDriven(): FocusDrivenType | undefined; /** * Sets focus driven type. @@ -4601,7 +4601,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - getFocusDistance(): double; + getFocusDistance(): double | undefined; /** * Sets focus distance. @@ -4785,7 +4785,7 @@ declare namespace camera { * @atomicservice * @since 20 dynamic&static */ - isWhiteBalanceModeSupported(mode: WhiteBalanceMode): boolean; + isWhiteBalanceModeSupported(mode: WhiteBalanceMode): boolean | undefined; /** * Query the white balance mode range. @@ -4806,7 +4806,7 @@ declare namespace camera { * @atomicservice * @since 20 dynamic&static */ - getWhiteBalanceRange(): Array; + getWhiteBalanceRange(): Array | undefined; } /** @@ -4890,7 +4890,7 @@ declare namespace camera { * @atomicservice * @since 20 dynamic&static */ - getWhiteBalance(): int; + getWhiteBalance(): int | undefined; /** * Sets white balance. @@ -4937,7 +4937,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - isManualIsoSupported(): boolean; + isManualIsoSupported(): boolean | undefined; /** * Get the ISO range. @@ -4950,7 +4950,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - getIsoRange(): Array; + getIsoRange(): Array | undefined; } /** @@ -4975,7 +4975,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - getIso(): int; + getIso(): int | undefined; /** * Sets ISO. @@ -5142,7 +5142,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getZoomRatioRange(): Array; + getZoomRatioRange(): Array | undefined; /** * Gets all important zoom ratio infos. @@ -5155,7 +5155,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - getZoomPointInfos(): Array; + getZoomPointInfos(): Array | undefined; } /** @@ -5205,7 +5205,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getZoomRatio(): double; + getZoomRatio(): double | undefined; /** * Sets zoom ratio. @@ -5427,7 +5427,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - isVideoStabilizationModeSupported(vsMode: VideoStabilizationMode): boolean; + isVideoStabilizationModeSupported(vsMode: VideoStabilizationMode): boolean | undefined; } /** @@ -5467,7 +5467,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getActiveVideoStabilizationMode(): VideoStabilizationMode; + getActiveVideoStabilizationMode(): VideoStabilizationMode | undefined; /** * Set video stabilization mode. @@ -5614,7 +5614,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - getSupportedBeautyTypes(): Array; + getSupportedBeautyTypes(): Array | undefined; /** * Gets the specific beauty effect type range. @@ -5640,7 +5640,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - getSupportedBeautyRange(type: BeautyType): Array; + getSupportedBeautyRange(type: BeautyType): Array | undefined; /** * Gets supported portrait theme type. @@ -5666,7 +5666,7 @@ declare namespace camera { * @since 14 dynamic * @since 20 static */ - isPortraitThemeSupported(): boolean; + isPortraitThemeSupported(): boolean | undefined; } /** @@ -5692,7 +5692,7 @@ declare namespace camera { * @since 11 dynamic * @since 20 static */ - getBeauty(type: BeautyType): int; + getBeauty(type: BeautyType): int | undefined; /** * Sets a beauty effect for a camera device. @@ -5745,7 +5745,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - isEffectSuggestionSupported(): boolean; + isEffectSuggestionSupported(): boolean | undefined; /** * Enable effect suggestion for session. @@ -5772,7 +5772,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - getSupportedEffectSuggestionTypes(): Array; + getSupportedEffectSuggestionTypes(): Array | undefined; /** * Set the range of effect suggestion type and enable status. @@ -5909,7 +5909,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - getSupportedColorEffects(): Array; + getSupportedColorEffects(): Array | undefined; } /** @@ -5934,7 +5934,7 @@ declare namespace camera { * @since 11 dynamic * @since 20 static */ - getColorEffect(): ColorEffectType; + getColorEffect(): ColorEffectType | undefined; /** * Sets a color effect for a camera device. @@ -5991,7 +5991,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getSupportedColorSpaces(): Array; + getSupportedColorSpaces(): Array | undefined; } /** @@ -6031,7 +6031,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getActiveColorSpace(): colorSpaceManager.ColorSpace; + getActiveColorSpace(): colorSpaceManager.ColorSpace | undefined; /** * Sets a color space for the session. @@ -6101,7 +6101,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - isAutoDeviceSwitchSupported(): boolean; + isAutoDeviceSwitchSupported(): boolean | undefined; } /** @@ -6258,7 +6258,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - isMacroSupported(): boolean; + isMacroSupported(): boolean | undefined; } /** @@ -6445,7 +6445,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - canAddInput(cameraInput: CameraInput): boolean; + canAddInput(cameraInput: CameraInput): boolean | undefined; /** * Adds a camera input. @@ -6565,7 +6565,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - canAddOutput(cameraOutput: CameraOutput): boolean; + canAddOutput(cameraOutput: CameraOutput): boolean | undefined; /** * Adds a camera output. @@ -6841,7 +6841,7 @@ declare namespace camera { * @since 13 dynamic * @since 20 static */ - getCameraOutputCapabilities(camera: CameraDevice): Array; + getCameraOutputCapabilities(camera: CameraDevice): Array | undefined; } /** @@ -7027,7 +7027,7 @@ declare namespace camera { * @deprecated since 11 * @useinstead ohos.multimedia.camera.Flash#hasFlash */ - hasFlash(): boolean; + hasFlash(): boolean | undefined; /** * Checks whether a specified flash mode is supported. @@ -7040,7 +7040,7 @@ declare namespace camera { * @deprecated since 11 * @useinstead ohos.multimedia.camera.Flash#isFlashModeSupported */ - isFlashModeSupported(flashMode: FlashMode): boolean; + isFlashModeSupported(flashMode: FlashMode): boolean | undefined; /** * Gets current flash mode. @@ -7052,7 +7052,7 @@ declare namespace camera { * @deprecated since 11 * @useinstead ohos.multimedia.camera.Flash#getFlashMode */ - getFlashMode(): FlashMode; + getFlashMode(): FlashMode | undefined; /** * Sets flash mode. @@ -7077,7 +7077,7 @@ declare namespace camera { * @deprecated since 11 * @useinstead ohos.multimedia.camera.AutoExposure#isExposureModeSupported */ - isExposureModeSupported(aeMode: ExposureMode): boolean; + isExposureModeSupported(aeMode: ExposureMode): boolean | undefined; /** * Gets current exposure mode. @@ -7089,7 +7089,7 @@ declare namespace camera { * @deprecated since 11 * @useinstead ohos.multimedia.camera.AutoExposure#getExposureMode */ - getExposureMode(): ExposureMode; + getExposureMode(): ExposureMode | undefined; /** * Sets Exposure mode. @@ -7113,7 +7113,7 @@ declare namespace camera { * @deprecated since 11 * @useinstead ohos.multimedia.camera.AutoExposure#getMeteringPoint */ - getMeteringPoint(): Point; + getMeteringPoint(): Point | undefined; /** * Set the center point of the exposure area, the exposure point should be located in the 0-1 coordinate system, @@ -7141,7 +7141,7 @@ declare namespace camera { * @deprecated since 11 * @useinstead ohos.multimedia.camera.AutoExposure#getExposureBiasRange */ - getExposureBiasRange(): Array; + getExposureBiasRange(): Array | undefined; /** * Set exposure compensation. @@ -7165,7 +7165,7 @@ declare namespace camera { * @deprecated since 11 * @useinstead ohos.multimedia.camera.AutoExposure#getExposureValue */ - getExposureValue(): number; + getExposureValue(): number | undefined; /** * Queries whether a specified focus mode is supported. @@ -7178,7 +7178,7 @@ declare namespace camera { * @deprecated since 11 * @useinstead ohos.multimedia.camera.Focus#isFocusModeSupported */ - isFocusModeSupported(afMode: FocusMode): boolean; + isFocusModeSupported(afMode: FocusMode): boolean | undefined; /** * Gets current focus mode. @@ -7226,7 +7226,7 @@ declare namespace camera { * @deprecated since 11 * @useinstead ohos.multimedia.camera.Focus#getFocusPoint */ - getFocusPoint(): Point; + getFocusPoint(): Point | undefined; /** * Gets current focal length. @@ -7238,7 +7238,7 @@ declare namespace camera { * @deprecated since 11 * @useinstead ohos.multimedia.camera.Focus#getFocalLength */ - getFocalLength(): number; + getFocalLength(): number | undefined; /** * Gets all supported zoom ratio range. @@ -7250,7 +7250,7 @@ declare namespace camera { * @deprecated since 11 * @useinstead ohos.multimedia.camera.Zoom#getZoomRatioRange */ - getZoomRatioRange(): Array; + getZoomRatioRange(): Array | undefined; /** * Gets zoom ratio. @@ -7262,7 +7262,7 @@ declare namespace camera { * @deprecated since 11 * @useinstead ohos.multimedia.camera.Zoom#getZoomRatio */ - getZoomRatio(): number; + getZoomRatio(): number | undefined; /** * Sets zoom ratio. @@ -7287,7 +7287,7 @@ declare namespace camera { * @deprecated since 11 * @useinstead ohos.multimedia.camera.Stabilization#isVideoStabilizationModeSupported */ - isVideoStabilizationModeSupported(vsMode: VideoStabilizationMode): boolean; + isVideoStabilizationModeSupported(vsMode: VideoStabilizationMode): boolean | undefined; /** * Query the video stabilization mode currently in use. @@ -7299,7 +7299,7 @@ declare namespace camera { * @deprecated since 11 * @useinstead ohos.multimedia.camera.Stabilization#getActiveVideoStabilizationMode */ - getActiveVideoStabilizationMode(): VideoStabilizationMode; + getActiveVideoStabilizationMode(): VideoStabilizationMode | undefined; /** * Set video stabilization mode. @@ -7372,7 +7372,7 @@ declare namespace camera { * @deprecated since 11 * @useinstead ohos.multimedia.camera.Beauty#getSupportedBeautyTypes */ - getSupportedBeautyTypes(): Array; + getSupportedBeautyTypes(): Array | undefined; /** * Gets the specific beauty effect type range. @@ -7386,7 +7386,7 @@ declare namespace camera { * @deprecated since 11 * @useinstead ohos.multimedia.camera.Beauty#getSupportedBeautyRange */ - getSupportedBeautyRange(type: BeautyType): Array; + getSupportedBeautyRange(type: BeautyType): Array | undefined; /** * Gets the beauty effect in use. @@ -7400,7 +7400,7 @@ declare namespace camera { * @deprecated since 11 * @useinstead ohos.multimedia.camera.Beauty#getBeauty */ - getBeauty(type: BeautyType): number; + getBeauty(type: BeautyType): number | undefined; /** * Sets a beauty effect for a camera device. @@ -7740,7 +7740,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - isSceneFeatureSupported(type: SceneFeatureType): boolean; + isSceneFeatureSupported(type: SceneFeatureType): boolean | undefined; } /** @@ -7849,7 +7849,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - canPreconfig(preconfigType: PreconfigType, preconfigRatio?: PreconfigRatio): boolean; + canPreconfig(preconfigType: PreconfigType, preconfigRatio?: PreconfigRatio): boolean | undefined; /** * Configure photo session with the preconfig type. @@ -8169,7 +8169,7 @@ declare namespace camera { * @since 13 dynamic * @since 20 static */ - getSessionFunctions(outputCapability: CameraOutputCapability): Array; + getSessionFunctions(outputCapability: CameraOutputCapability): Array | undefined; /** * Gets session conflict functions. @@ -8181,7 +8181,7 @@ declare namespace camera { * @since 13 dynamic * @since 20 static */ - getSessionConflictFunctions(): Array; + getSessionConflictFunctions(): Array | undefined; } /** @@ -8326,7 +8326,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - canPreconfig(preconfigType: PreconfigType, preconfigRatio?: PreconfigRatio): boolean; + canPreconfig(preconfigType: PreconfigType, preconfigRatio?: PreconfigRatio): boolean | undefined; /** * Configure video session with the preconfig type. @@ -8646,7 +8646,7 @@ declare namespace camera { * @since 13 dynamic * @since 20 static */ - getSessionFunctions(outputCapability: CameraOutputCapability): Array; + getSessionFunctions(outputCapability: CameraOutputCapability): Array | undefined; /** * Gets session conflict functions. @@ -8658,7 +8658,7 @@ declare namespace camera { * @since 13 dynamic * @since 20 static */ - getSessionConflictFunctions(): Array; + getSessionConflictFunctions(): Array | undefined; /** * Sets quality prioritization. @@ -8861,7 +8861,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - getSupportedPortraitEffects(): Array; + getSupportedPortraitEffects(): Array | undefined; } /** @@ -8896,7 +8896,7 @@ declare namespace camera { * @since 11 dynamic * @since 20 static */ - getPortraitEffect(): PortraitEffect; + getPortraitEffect(): PortraitEffect | undefined; /** * Sets a portrait effect for a camera device. @@ -9022,7 +9022,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - getSupportedVirtualApertures(): Array; + getSupportedVirtualApertures(): Array | undefined; /** * Gets the supported physical apertures. @@ -9046,7 +9046,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - getSupportedPhysicalApertures(): Array; + getSupportedPhysicalApertures(): Array | undefined; } /** @@ -9071,7 +9071,7 @@ declare namespace camera { * @since 11 dynamic * @since 20 static */ - getVirtualAperture(): double; + getVirtualAperture(): double | undefined; /** * Sets virtual aperture value. @@ -9097,7 +9097,7 @@ declare namespace camera { * @since 11 dynamic * @since 20 static */ - getPhysicalAperture(): double; + getPhysicalAperture(): double | undefined; /** * Sets physical aperture value. @@ -9234,7 +9234,7 @@ declare namespace camera { * @since 13 dynamic * @since 20 static */ - getSessionFunctions(outputCapability: CameraOutputCapability): Array; + getSessionFunctions(outputCapability: CameraOutputCapability): Array | undefined; /** * Gets session conflict functions. @@ -9246,7 +9246,7 @@ declare namespace camera { * @since 13 dynamic * @since 20 static */ - getSessionConflictFunctions(): Array; + getSessionConflictFunctions(): Array | undefined; } /** @@ -9372,7 +9372,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - getSupportedExposureRange(): Array; + getSupportedExposureRange(): Array | undefined; } /** @@ -9408,7 +9408,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - getExposure(): int; + getExposure(): int | undefined; /** * Sets Exposure value. @@ -10194,7 +10194,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - isSlowMotionDetectionSupported(): boolean; + isSlowMotionDetectionSupported(): boolean | undefined; /** * Set slow motion detection area. @@ -10765,7 +10765,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - getLightPaintingType(): LightPaintingType; + getLightPaintingType(): LightPaintingType | undefined; /** * Sets a light painting type for a camera device. @@ -10792,7 +10792,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - getSupportedLightPaintingTypes(): Array; + getSupportedLightPaintingTypes(): Array | undefined; } /** @@ -11464,7 +11464,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getActiveFrameRate(): FrameRateRange; + getActiveFrameRate(): FrameRateRange | undefined; /** * Gets the current preconfig type if you had already call preconfig interface. @@ -11484,7 +11484,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getActiveProfile(): Profile; + getActiveProfile(): Profile | undefined; /** * Gets the preview rotation angle. @@ -11566,7 +11566,7 @@ declare namespace camera { * @since 11 dynamic * @since 20 static */ - isSketchSupported(): boolean; + isSketchSupported(): boolean | undefined; /** * Gets the specific zoom ratio when sketch stream open. @@ -11579,7 +11579,7 @@ declare namespace camera { * @since 11 dynamic * @since 20 static */ - getSketchRatio(): double; + getSketchRatio(): double | undefined; /** * Enable sketch for camera. @@ -12440,7 +12440,7 @@ declare namespace camera { * @since 13 dynamic * @since 20 static */ - isRawDeliverySupported(): boolean; + isRawDeliverySupported(): boolean | undefined; /** * Enable raw image image delivery. @@ -12471,7 +12471,7 @@ declare namespace camera { * @since 11 dynamic * @since 20 static */ - isDeferredImageDeliverySupported(type: DeferredDeliveryImageType): boolean; + isDeferredImageDeliverySupported(type: DeferredDeliveryImageType): boolean | undefined; /** * Confirm if the deferred image delivery enabled. @@ -12487,7 +12487,7 @@ declare namespace camera { * @since 11 dynamic * @since 20 static */ - isDeferredImageDeliveryEnabled(type: DeferredDeliveryImageType): boolean; + isDeferredImageDeliveryEnabled(type: DeferredDeliveryImageType): boolean | undefined; /** * Sets the image type for deferred image delivery. @@ -12516,7 +12516,7 @@ declare namespace camera { * @since 13 dynamic * @since 20 static */ - isDepthDataDeliverySupported(): boolean; + isDepthDataDeliverySupported(): boolean | undefined; /** * Enable depth data delivery. @@ -13088,7 +13088,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getActiveProfile(): Profile; + getActiveProfile(): Profile | undefined; /** * Checks whether PhotoOutput supports quick thumbnail. @@ -13112,7 +13112,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - isQuickThumbnailSupported(): boolean; + isQuickThumbnailSupported(): boolean | undefined; /** * Enables or disables quick thumbnail. @@ -13182,7 +13182,7 @@ declare namespace camera { * @since 13 dynamic * @since 20 static */ - isAutoHighQualityPhotoSupported(): boolean; + isAutoHighQualityPhotoSupported(): boolean | undefined; /** * Enable auto high quality photo. @@ -13210,7 +13210,7 @@ declare namespace camera { * @since 13 dynamic * @since 20 static */ - isAutoCloudImageEnhancementSupported(): boolean; + isAutoCloudImageEnhancementSupported(): boolean | undefined; /** * Enable auto cloud image enhancement @@ -13244,7 +13244,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - isMovingPhotoSupported(): boolean; + isMovingPhotoSupported(): boolean | undefined; /** * Enable moving photo. @@ -13294,7 +13294,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getPhotoRotation(deviceDegree: int): ImageRotation; + getPhotoRotation(deviceDegree: int): ImageRotation | undefined; /** * Confirm if offline processing is supported. @@ -13307,7 +13307,7 @@ declare namespace camera { * @since 18 dynamic * @since 20 static */ - isOfflineSupported(): boolean; + isOfflineSupported(): boolean | undefined; /** * Enable offline processing. @@ -13762,7 +13762,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getSupportedFrameRates(): Array; + getSupportedFrameRates(): Array | undefined; /** * Set a frame rate range. @@ -13804,7 +13804,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getActiveFrameRate(): FrameRateRange; + getActiveFrameRate(): FrameRateRange | undefined; /** * Gets the video rotation angle. @@ -13828,7 +13828,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getVideoRotation(deviceDegree: int): ImageRotation; + getVideoRotation(deviceDegree: int): ImageRotation | undefined; /** * Confirm if auto deferred video enhancement is supported in the specific device. @@ -13880,7 +13880,7 @@ declare namespace camera { * @since 14 dynamic * @since 20 static */ - getSupportedRotations(): Array; + getSupportedRotations(): Array | undefined; /** * Determine whether video rotation is supported. @@ -13892,7 +13892,7 @@ declare namespace camera { * @since 14 dynamic * @since 20 static */ - isRotationSupported(): boolean; + isRotationSupported(): boolean | undefined; /** * Set a video rotation. @@ -13917,7 +13917,7 @@ declare namespace camera { * @since 18 dynamic * @since 20 static */ - isAutoVideoFrameRateSupported(): boolean; + isAutoVideoFrameRateSupported(): boolean | undefined; /** * Enable auto frame rate for video capture. @@ -14104,7 +14104,7 @@ declare namespace camera { * @since 19 dynamic * @since 20 static */ - getActiveProfile(): VideoProfile; + getActiveProfile(): VideoProfile | undefined; /** * Get supported video meta types. @@ -14116,7 +14116,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - getSupportedVideoMetaTypes(): Array; + getSupportedVideoMetaTypes(): Array | undefined; /** * Attach a meta surface to VideoOutput. @@ -15451,7 +15451,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - isTryAENeeded(): boolean; + isTryAENeeded(): boolean | undefined; /** * Start try AE. @@ -15516,7 +15516,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - getSupportedTimeLapseIntervalRange(): Array; + getSupportedTimeLapseIntervalRange(): Array | undefined; /** * Gets the timelapse interval in use. @@ -15529,7 +15529,7 @@ declare namespace camera { * @since 12 dynamic * @since 20 static */ - getTimeLapseInterval(): int; + getTimeLapseInterval(): int | undefined; /** * Sets a timelapse interval for a camera device. @@ -15901,7 +15901,7 @@ declare namespace camera { * @since 14 dynamic * @since 20 static */ - isDepthFusionSupported(): boolean; + isDepthFusionSupported(): boolean | undefined; /** * Query the depth fusion threshold. @@ -15914,7 +15914,7 @@ declare namespace camera { * @since 14 dynamic * @since 20 static */ - getDepthFusionThreshold(): Array; + getDepthFusionThreshold(): Array | undefined; } /** @@ -15939,7 +15939,7 @@ declare namespace camera { * @since 14 dynamic * @since 20 static */ - isDepthFusionEnabled(): boolean; + isDepthFusionEnabled(): boolean | undefined; /** * Enable depth fusion. @@ -16071,7 +16071,7 @@ declare namespace camera { * @since 15 dynamic * @since 20 static */ - getSupportedColorReservationTypes(): Array; + getSupportedColorReservationTypes(): Array | undefined; } /** @@ -16096,7 +16096,7 @@ declare namespace camera { * @since 15 dynamic * @since 20 static */ - getColorReservation(): ColorReservationType; + getColorReservation(): ColorReservationType | undefined; /** * Sets the color reservation type. -- Gitee