diff --git a/api/@ohos.multimedia.camera.d.ts b/api/@ohos.multimedia.camera.d.ts index 12a3abe04f1e8a7dbcc35a3f558ac1be88935818..fb769d388cf4d3467072372396319358dd2ab796 100644 --- a/api/@ohos.multimedia.camera.d.ts +++ b/api/@ohos.multimedia.camera.d.ts @@ -53,7 +53,7 @@ declare namespace camera { /** * Enum for camera status. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 @@ -99,7 +99,7 @@ declare namespace camera { /** * Enum for fold status. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 @@ -138,7 +138,8 @@ declare namespace camera { * * @typedef Profile * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface Profile { /** @@ -147,7 +148,8 @@ declare namespace camera { * @type { CameraFormat } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ readonly format: CameraFormat; @@ -157,7 +159,8 @@ declare namespace camera { * @type { Size } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ readonly size: Size; } @@ -167,28 +170,31 @@ declare namespace camera { * * @typedef FrameRateRange * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface FrameRateRange { /** * Min frame rate. * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - readonly min: number; + readonly min: int; /** * Max frame rate. * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - readonly max: number; + readonly max: int; } /** @@ -197,7 +203,8 @@ declare namespace camera { * @extends Profile * @typedef VideoProfile * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface VideoProfile extends Profile { /** @@ -206,7 +213,8 @@ declare namespace camera { * @type { FrameRateRange } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ readonly frameRateRange: FrameRateRange; } @@ -216,7 +224,8 @@ declare namespace camera { * * @typedef CameraOutputCapability * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface CameraOutputCapability { /** @@ -225,7 +234,8 @@ declare namespace camera { * @type { Array } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ readonly previewProfiles: Array; @@ -235,7 +245,8 @@ declare namespace camera { * @type { Array } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ readonly photoProfiles: Array; @@ -245,7 +256,8 @@ declare namespace camera { * @type { Array } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ readonly videoProfiles: Array; @@ -256,7 +268,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ readonly depthProfiles: Array; @@ -266,7 +279,8 @@ declare namespace camera { * @type { Array } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ readonly supportedMetadataObjectTypes: Array; } @@ -274,16 +288,18 @@ declare namespace camera { /** * Enum for camera error code. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ enum CameraErrorCode { /** * Parameter missing or parameter type incorrect. * * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ INVALID_ARGUMENT = 7400101, @@ -291,7 +307,8 @@ declare namespace camera { * Operation not allowed. * * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ OPERATION_NOT_ALLOWED = 7400102, @@ -299,7 +316,8 @@ declare namespace camera { * Session not config. * * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ SESSION_NOT_CONFIG = 7400103, @@ -307,7 +325,8 @@ declare namespace camera { * Session not running. * * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ SESSION_NOT_RUNNING = 7400104, @@ -315,7 +334,8 @@ declare namespace camera { * Session config locked. * * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ SESSION_CONFIG_LOCKED = 7400105, @@ -323,7 +343,8 @@ declare namespace camera { * Device setting locked. * * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ DEVICE_SETTING_LOCKED = 7400106, @@ -331,7 +352,8 @@ declare namespace camera { * Can not use camera cause of conflict. * * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ CONFLICT_CAMERA = 7400107, @@ -339,7 +361,8 @@ declare namespace camera { * Camera disabled cause of security reason. * * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ DEVICE_DISABLED = 7400108, @@ -347,7 +370,8 @@ declare namespace camera { * Can not use camera cause of preempted. * * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ DEVICE_PREEMPTED = 7400109, @@ -355,7 +379,8 @@ declare namespace camera { * Unresolved conflicts with current configurations. * * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ UNRESOLVED_CONFLICTS_WITH_CURRENT_CONFIGURATIONS = 7400110, @@ -364,7 +389,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ DEVICE_FREQUENTLY_SWITCHED = 7400111, @@ -373,7 +399,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ CAMERA_LENS_RETRACTED = 7400112, @@ -381,7 +408,8 @@ declare namespace camera { * Camera service fatal error. * * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ SERVICE_FATAL_ERROR = 7400201 } @@ -389,7 +417,7 @@ declare namespace camera { /** * Enum for restore parameter. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'11','1.2':'20'} @@ -440,35 +468,35 @@ declare namespace camera { /** * Skin smooth level value for restore. * - * @type { number } + * @type { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'11','1.2':'20'} * @arkts 1.1&1.2 */ - skinSmoothLevel: number; + skinSmoothLevel: int; /** * Face slender value for restore. * - * @type { number } + * @type { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'11','1.2':'20'} * @arkts 1.1&1.2 */ - faceSlender: number; + faceSlender: int; /** * Skin tone value for restore. * - * @type { number } + * @type { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'11','1.2':'20'} * @arkts 1.1&1.2 */ - skinTone: number; + skinTone: int; } /** @@ -477,7 +505,8 @@ declare namespace camera { * @typedef PrelaunchConfig * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface PrelaunchConfig { /** @@ -486,7 +515,8 @@ declare namespace camera { * @type { CameraDevice } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ cameraDevice: CameraDevice; @@ -496,19 +526,21 @@ declare namespace camera { * @type { ?RestoreParamType } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ restoreParamType?: RestoreParamType; /** * Begin active time. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - activeTime?: number; + activeTime?: int; /** * Setting parameter. @@ -516,7 +548,8 @@ declare namespace camera { * @type { ?SettingParam } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ settingParam?: SettingParam; } @@ -535,7 +568,8 @@ declare namespace camera { * * @returns { Array } An array of supported cameras. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ getSupportedCameras(): Array; @@ -557,7 +591,8 @@ declare namespace camera { * @param { CameraDevice } camera - Camera device. * @returns { Array } An array of supported scene mode of camera. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ getSupportedSceneModes(camera: CameraDevice): Array; @@ -568,7 +603,8 @@ declare namespace camera { * @param { SceneMode } mode - Scene mode. * @returns { CameraOutputCapability } The camera output capability. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ getSupportedOutputCapability(camera: CameraDevice, mode: SceneMode): CameraOutputCapability; @@ -577,7 +613,8 @@ declare namespace camera { * * @returns { boolean } Is camera muted. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ isCameraMuted(): boolean; @@ -596,7 +633,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ isCameraMuteSupported(): boolean; @@ -623,7 +661,8 @@ declare namespace camera { * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ muteCameraPersistent(mute: boolean, type: PolicyType): void; @@ -647,7 +686,8 @@ declare namespace camera { * @throws { BusinessError } 7400102 - Operation not allowed. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ createCameraInput(camera: CameraDevice): CameraInput; @@ -673,7 +713,8 @@ declare namespace camera { * @throws { BusinessError } 7400102 - Operation not allowed. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ createCameraInput(position: CameraPosition, type: CameraType): CameraInput; @@ -696,7 +737,8 @@ declare namespace camera { * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ createPreviewOutput(profile: Profile, surfaceId: string): PreviewOutput; @@ -710,7 +752,8 @@ declare namespace camera { * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ createPreviewOutput(surfaceId: string): PreviewOutput; @@ -751,7 +794,8 @@ declare namespace camera { * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ createPhotoOutput(profile?: Profile): PhotoOutput; @@ -774,7 +818,8 @@ declare namespace camera { * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ createVideoOutput(profile: VideoProfile, surfaceId: string): VideoOutput; @@ -788,7 +833,8 @@ declare namespace camera { * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ createVideoOutput(surfaceId: string): VideoOutput; @@ -809,7 +855,8 @@ declare namespace camera { * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ createMetadataOutput(metadataObjectTypes: Array): MetadataOutput; @@ -822,7 +869,8 @@ declare namespace camera { * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ createDepthDataOutput(profile: DepthProfile): DepthDataOutput; @@ -848,7 +896,8 @@ declare namespace camera { * 3. Parameter verification failed. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ createSession(mode: SceneMode): T; @@ -858,7 +907,8 @@ declare namespace camera { * @param { 'cameraStatus' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the camera status change. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'cameraStatus', callback: AsyncCallback): void; @@ -868,7 +918,8 @@ declare namespace camera { * @param { 'cameraStatus' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the camera status change. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'cameraStatus', callback?: AsyncCallback): void; @@ -878,7 +929,8 @@ declare namespace camera { * @param { 'foldStatusChanged' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the fold status change. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'foldStatusChange', callback: AsyncCallback): void; @@ -888,7 +940,8 @@ declare namespace camera { * @param { 'foldStatusChanged' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the fold status change. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'foldStatusChange', callback?: AsyncCallback): void; @@ -909,7 +962,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'cameraMute', callback: AsyncCallback): void; @@ -930,7 +984,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Permission verification failed. A non-system application calls a system API. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'cameraMute', callback?: AsyncCallback): void; @@ -955,7 +1010,8 @@ declare namespace camera { * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ isPrelaunchSupported(camera: CameraDevice): boolean; @@ -983,7 +1039,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ setPrelaunchConfig(prelaunchConfig: PrelaunchConfig): void; @@ -1028,7 +1085,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ preSwitchCamera(cameraId: string): void; @@ -1053,7 +1111,8 @@ declare namespace camera { * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ createDeferredPreviewOutput(profile?: Profile): PreviewOutput; @@ -1062,7 +1121,8 @@ declare namespace camera { * * @returns { boolean } this value that specifies whether the device has a torch. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ isTorchSupported(): boolean; @@ -1071,7 +1131,8 @@ declare namespace camera { * @param { TorchMode } mode - torch mode. * @returns { boolean } is torch mode supported. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ isTorchModeSupported(mode: TorchMode): boolean; @@ -1080,7 +1141,8 @@ declare namespace camera { * * @returns { TorchMode } torch mode. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ getTorchMode(): TorchMode; @@ -1100,7 +1162,8 @@ declare namespace camera { * @throws { BusinessError } 7400102 - Operation not allowed. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ setTorchMode(mode: TorchMode): void; @@ -1110,7 +1173,8 @@ declare namespace camera { * @param { 'torchStatusChange' } type - Event type * @param { AsyncCallback } callback - Callback used to return the torch status change * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'torchStatusChange', callback: AsyncCallback): void; @@ -1120,7 +1184,8 @@ declare namespace camera { * @param { 'torchStatusChange' } type - Event type * @param { AsyncCallback } callback - Callback used to return the torch status change * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'torchStatusChange', callback?: AsyncCallback): void; } @@ -1130,7 +1195,8 @@ declare namespace camera { * * @typedef TorchStatusInfo * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface TorchStatusInfo { /** @@ -1139,7 +1205,8 @@ declare namespace camera { * @type { boolean } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ readonly isTorchAvailable: boolean; @@ -1149,25 +1216,27 @@ declare namespace camera { * @type { boolean } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ readonly isTorchActive: boolean; /** * the current torch brightness level. * - * @type { number } + * @type { double } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - readonly torchLevel: number; + readonly torchLevel: double; } /** * Enum for torch mode. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'11','1.2':'20'} * @arkts 1.1&1.2 @@ -1206,7 +1275,8 @@ declare namespace camera { * * @typedef CameraStatusInfo * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface CameraStatusInfo { /** @@ -1214,7 +1284,8 @@ declare namespace camera { * * @type { CameraDevice } * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ camera: CameraDevice; @@ -1223,7 +1294,8 @@ declare namespace camera { * * @type { CameraStatus } * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ status: CameraStatus; } @@ -1233,7 +1305,8 @@ declare namespace camera { * * @typedef FoldStatusInfo * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface FoldStatusInfo { /** @@ -1242,7 +1315,8 @@ declare namespace camera { * @type { Array } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ readonly supportedCameras: Array; @@ -1252,7 +1326,8 @@ declare namespace camera { * @type { FoldStatus } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ readonly foldStatus: FoldStatus; } @@ -1267,7 +1342,7 @@ declare namespace camera { /** * Enum for camera position. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice * @since arkts {'1.1':'12','1.2':'20'} @@ -1342,7 +1417,7 @@ declare namespace camera { /** * Enum for camera type. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 @@ -1397,7 +1472,7 @@ declare namespace camera { /** * Enum for camera connection type. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 @@ -1442,7 +1517,7 @@ declare namespace camera { /** * Enum for remote camera device type. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'15','1.2':'20'} * @arkts 1.1&1.2 @@ -1502,7 +1577,8 @@ declare namespace camera { * * @typedef CameraDevice * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface CameraDevice { /** @@ -1511,7 +1587,8 @@ declare namespace camera { * @type { string } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ readonly cameraId: string; @@ -1521,7 +1598,8 @@ declare namespace camera { * @type { CameraPosition } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ readonly cameraPosition: CameraPosition; @@ -1531,7 +1609,8 @@ declare namespace camera { * @type { CameraType } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ readonly cameraType: CameraType; @@ -1541,7 +1620,8 @@ declare namespace camera { * @type { ConnectionType } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ readonly connectionType: ConnectionType; @@ -1560,7 +1640,8 @@ declare namespace camera { * @type { string } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ readonly hostDeviceName: string; @@ -1579,19 +1660,21 @@ declare namespace camera { * @type { HostDeviceType } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ readonly hostDeviceType: HostDeviceType; /** * Camera sensor orientation attribute. * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - readonly cameraOrientation: number; + readonly cameraOrientation: int; /** * Camera device retractable attribute @@ -1600,7 +1683,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ readonly isRetractable?: boolean; } @@ -1617,22 +1701,22 @@ declare namespace camera { /** * Height. * - * @type { number } + * @type { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ - height: number; + height: int; /** * Width. * - * @type { number } + * @type { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ - width: number; + width: int; } /** @@ -1647,22 +1731,22 @@ declare namespace camera { /** * x co-ordinate * - * @type { number } + * @type { double } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ - x: number; + x: double; /** * y co-ordinate * - * @type { number } + * @type { double } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ - y: number; + y: double; } /** @@ -1670,7 +1754,8 @@ declare namespace camera { * * @interface CameraInput * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface CameraInput { /** @@ -1681,7 +1766,8 @@ declare namespace camera { * @throws { BusinessError } 7400108 - Camera disabled cause of security reason. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ open(callback: AsyncCallback): void; @@ -1694,7 +1780,8 @@ declare namespace camera { * @throws { BusinessError } 7400108 - Camera disabled cause of security reason. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ open(): Promise; @@ -1707,7 +1794,8 @@ declare namespace camera { * @throws { BusinessError } 7400108 - Camera disabled cause of security reason. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ open(isSecureEnabled: boolean): Promise; @@ -1717,7 +1805,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to return the result. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ close(callback: AsyncCallback): void; @@ -1727,23 +1816,25 @@ declare namespace camera { * @returns { Promise } Promise used to return the result. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ close(): Promise; /** * Delay close camera. * - * @param { number } time - delay time for turning off camera. + * @param { int } time - delay time for turning off camera. * @returns { Promise } Promise used to return the result. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ - closeDelayed(time: number): Promise; + closeDelayed(time: int): Promise; /** * Subscribes to error events. @@ -1752,7 +1843,8 @@ declare namespace camera { * @param { CameraDevice } camera - Camera device. * @param { ErrorCallback } callback - Callback used to get the camera input errors. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', camera: CameraDevice, callback: ErrorCallback): void; @@ -1763,7 +1855,8 @@ declare namespace camera { * @param { CameraDevice } camera - Camera device. * @param { ErrorCallback } callback - Callback used to get the camera input errors. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', camera: CameraDevice, callback?: ErrorCallback): void; @@ -1775,7 +1868,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'cameraOcclusionDetection', callback: AsyncCallback): void; @@ -1787,7 +1881,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'cameraOcclusionDetection', callback?: AsyncCallback): void; @@ -1803,7 +1898,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ controlAuxiliary(auxiliaryType: AuxiliaryType, auxiliaryStatus: AuxiliaryStatus): Promise; } @@ -1811,7 +1907,7 @@ declare namespace camera { /** * Enumerates the camera scene modes. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'11','1.2':'20'} * @arkts 1.1&1.2 @@ -1988,7 +2084,7 @@ declare namespace camera { /** * Enum for camera format type. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 @@ -2082,7 +2178,7 @@ declare namespace camera { /** * Enum for flash mode. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 @@ -2131,7 +2227,8 @@ declare namespace camera { * @typedef LcdFlashStatus * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface LcdFlashStatus { /** @@ -2141,20 +2238,22 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ readonly isLcdFlashNeeded: boolean; /** * Compensate value for lcd flash. * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - readonly lcdCompensation: number; + readonly lcdCompensation: int; } /** @@ -2162,7 +2261,8 @@ declare namespace camera { * * @interface FlashQuery * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface FlashQuery { /** @@ -2180,7 +2280,8 @@ declare namespace camera { * @returns { boolean } The flash light support status. * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ hasFlash(): boolean; @@ -2201,7 +2302,8 @@ declare namespace camera { * @returns { boolean } Is the flash mode supported. * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ isFlashModeSupported(flashMode: FlashMode): boolean; @@ -2213,7 +2315,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ isLcdFlashSupported(): boolean; } @@ -2224,7 +2327,8 @@ declare namespace camera { * @extends FlashQuery * @interface Flash * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface Flash extends FlashQuery { /** @@ -2233,7 +2337,8 @@ declare namespace camera { * @returns { FlashMode } The current flash mode. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ getFlashMode(): FlashMode; @@ -2243,7 +2348,8 @@ declare namespace camera { * @param { FlashMode } flashMode - Target flash mode. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ setFlashMode(flashMode: FlashMode): void; @@ -2255,7 +2361,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ enableLcdFlash(enabled: boolean): void; } @@ -2263,7 +2370,7 @@ declare namespace camera { /** * Enum for exposure mode. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 @@ -2310,10 +2417,11 @@ declare namespace camera { /** * Enum for exposure metering mode. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ enum ExposureMeteringMode { /** @@ -2321,7 +2429,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ MATRIX = 0, @@ -2330,7 +2439,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ CENTER = 1, @@ -2339,7 +2449,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ SPOT = 2 } @@ -2349,7 +2460,8 @@ declare namespace camera { * * @interface AutoExposureQuery * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface AutoExposureQuery { /** @@ -2369,7 +2481,8 @@ declare namespace camera { * @returns { boolean } Is the exposure mode supported. * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ isExposureModeSupported(aeMode: ExposureMode): boolean; @@ -2385,12 +2498,13 @@ declare namespace camera { * Query the exposure compensation range. * Move to AutoExposureQuery interface from AutoExposure interface since 12. * - * @returns { Array } The array of compensation range. + * @returns { Array } The array of compensation range. * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - getExposureBiasRange(): Array; + getExposureBiasRange(): Array; /** * Checks whether a specified exposure metering mode is supported. @@ -2402,7 +2516,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ isExposureMeteringModeSupported(aeMeteringMode: ExposureMeteringMode): boolean; } @@ -2413,7 +2528,8 @@ declare namespace camera { * @extends AutoExposureQuery * @interface AutoExposure * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface AutoExposure extends AutoExposureQuery { /** @@ -2422,7 +2538,8 @@ declare namespace camera { * @returns { ExposureMode } The current exposure mode. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ getExposureMode(): ExposureMode; @@ -2432,7 +2549,8 @@ declare namespace camera { * @param { ExposureMode } aeMode - Exposure mode * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ setExposureMode(aeMode: ExposureMode): void; @@ -2442,7 +2560,8 @@ declare namespace camera { * @returns { Point } The current metering point. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ getMeteringPoint(): Point; @@ -2452,19 +2571,21 @@ declare namespace camera { * @param { Point } point - metering point * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ setMeteringPoint(point: Point): void; /** * Query the exposure compensation range. * - * @returns { Array } The array of compensation range. + * @returns { Array } The array of compensation range. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - getExposureBiasRange(): Array; + getExposureBiasRange(): Array; /** * Set exposure compensation. @@ -2477,23 +2598,25 @@ declare namespace camera { /** * Set exposure compensation. * - * @param { number } exposureBias - Exposure compensation + * @param { double } exposureBias - Exposure compensation * @throws { BusinessError } 7400102 - Operation not allowed. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - setExposureBias(exposureBias: number): void; + setExposureBias(exposureBias: double): void; /** * Query the exposure value. * - * @returns { number } The exposure value. + * @returns { double } The exposure value. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - getExposureValue(): number; + getExposureValue(): double; /** * Gets current exposure metering mode. @@ -2503,7 +2626,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getExposureMeteringMode(): ExposureMeteringMode; @@ -2516,7 +2640,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ setExposureMeteringMode(aeMeteringMode: ExposureMeteringMode): void; } @@ -2524,7 +2649,7 @@ declare namespace camera { /** * Enum for focus mode. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 @@ -2570,7 +2695,7 @@ declare namespace camera { /** * Enum for focus state. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 @@ -2607,10 +2732,11 @@ declare namespace camera { /** * Enum for focus range type. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ enum FocusRangeType { /** @@ -2618,7 +2744,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ AUTO = 0, @@ -2627,7 +2754,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ NEAR = 1 } @@ -2635,10 +2763,11 @@ declare namespace camera { /** * Enum for focus driven type. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ enum FocusDrivenType { /** @@ -2646,7 +2775,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ AUTO = 0, @@ -2655,7 +2785,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ FACE = 1 } @@ -2663,10 +2794,11 @@ declare namespace camera { /** * Enum for focus tracking mode. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ enum FocusTrackingMode { /** @@ -2674,7 +2806,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ AUTO = 0 } @@ -2685,7 +2818,8 @@ declare namespace camera { * @typedef FocusTrackingInfo * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ interface FocusTrackingInfo { /** @@ -2694,7 +2828,8 @@ declare namespace camera { * @type { FocusTrackingMode } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ trackingMode: FocusTrackingMode; @@ -2704,7 +2839,8 @@ declare namespace camera { * @type { Rect } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ trackingRegion: Rect; } @@ -2714,7 +2850,8 @@ declare namespace camera { * * @interface FocusQuery * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface FocusQuery { /** @@ -2734,7 +2871,8 @@ declare namespace camera { * @returns { boolean } Is the focus mode supported. * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ isFocusModeSupported(afMode: FocusMode): boolean; @@ -2746,7 +2884,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ isFocusAssistSupported(): boolean; @@ -2762,7 +2901,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ isFocusRangeTypeSupported(type: FocusRangeType): boolean; @@ -2778,7 +2918,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ isFocusDrivenTypeSupported(type: FocusDrivenType): boolean; } @@ -2789,7 +2930,8 @@ declare namespace camera { * @extends FocusQuery * @interface Focus * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface Focus extends FocusQuery { /** @@ -2798,7 +2940,8 @@ declare namespace camera { * @returns { FocusMode } The current focus mode. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ getFocusMode(): FocusMode; @@ -2808,7 +2951,8 @@ declare namespace camera { * @param { FocusMode } afMode - Target focus mode. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ setFocusMode(afMode: FocusMode): void; @@ -2818,7 +2962,8 @@ declare namespace camera { * @param { Point } point - Target focus point. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ setFocusPoint(point: Point): void; @@ -2828,19 +2973,21 @@ declare namespace camera { * @returns { Point } The current focus point. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ getFocusPoint(): Point; /** * Gets current focal length. * - * @returns { number } The current focal point. + * @returns { double } The current focal point. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - getFocalLength(): number; + getFocalLength(): double; /** * Gets current focus assist. @@ -2850,7 +2997,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getFocusAssist(): boolean; @@ -2863,7 +3011,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ setFocusAssist(enabled: boolean): void; @@ -2875,7 +3024,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ getFocusRange(): FocusRangeType; @@ -2892,7 +3042,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ setFocusRange(type: FocusRangeType): void; @@ -2904,7 +3055,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ getFocusDriven(): FocusDrivenType; @@ -2921,7 +3073,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ setFocusDriven(type: FocusDrivenType): void; } @@ -2932,42 +3085,46 @@ declare namespace camera { * @interface ManualFocus * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface ManualFocus { /** * Gets current focus distance. * - * @returns { number } The current focus distance. + * @returns { double } The current focus distance. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - getFocusDistance(): number; + getFocusDistance(): double; /** * Sets focus distance. * - * @param { number } distance - Focus distance + * @param { double } distance - Focus distance * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - setFocusDistance(distance: number): void; + setFocusDistance(distance: double): void; } /** * Enumerates the camera white balance modes. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ enum WhiteBalanceMode { /** @@ -2975,7 +3132,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ AUTO = 0, @@ -2984,7 +3142,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ CLOUDY = 1, @@ -2993,7 +3152,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ INCANDESCENT = 2, @@ -3002,7 +3162,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ FLUORESCENT = 3, @@ -3011,7 +3172,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ DAYLIGHT = 4, @@ -3020,7 +3182,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ MANUAL = 5, @@ -3029,7 +3192,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ LOCKED = 6 } @@ -3040,7 +3204,8 @@ declare namespace camera { * @interface WhiteBalanceQuery * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface WhiteBalanceQuery { /** @@ -3053,21 +3218,23 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ isWhiteBalanceModeSupported(mode: WhiteBalanceMode): boolean; /** * Query the white balance mode range. * - * @returns { Array } The array of white balance mode range. + * @returns { Array } The array of white balance mode range. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - getWhiteBalanceRange(): Array; + getWhiteBalanceRange(): Array; } /** @@ -3077,7 +3244,8 @@ declare namespace camera { * @interface WhiteBalance * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface WhiteBalance extends WhiteBalanceQuery { /** @@ -3088,7 +3256,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getWhiteBalanceMode(): WhiteBalanceMode; @@ -3101,34 +3270,37 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ setWhiteBalanceMode(mode: WhiteBalanceMode): void; /** * Gets current white balance. * - * @returns { number } The current white balance. + * @returns { int } The current white balance. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - getWhiteBalance(): number; + getWhiteBalance(): int; /** * Sets white balance. * - * @param { number } whiteBalance - White balance. + * @param { int } whiteBalance - White balance. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - setWhiteBalance(whiteBalance: number): void; + setWhiteBalance(whiteBalance: int): void; } /** @@ -3137,7 +3309,8 @@ declare namespace camera { * @interface ManualIsoQuery * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface ManualIsoQuery { /** @@ -3148,21 +3321,23 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ isManualIsoSupported(): boolean; /** * Get the ISO range. * - * @returns { Array } The array of ISO range. + * @returns { Array } The array of ISO range. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - getIsoRange(): Array; + getIsoRange(): Array; } /** @@ -3172,48 +3347,53 @@ declare namespace camera { * @interface ManualIso * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface ManualIso extends ManualIsoQuery { /** * Gets current ISO. * - * @returns { number } The current ISO. + * @returns { int } The current ISO. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - getIso(): number; + getIso(): int; /** * Sets ISO. * - * @param { number } iso - ISO + * @param { int } iso - ISO * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - setIso(iso: number): void; + setIso(iso: int): void; } /** * Enum for smooth zoom mode. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ enum SmoothZoomMode { /** * Normal zoom mode. * * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ NORMAL = 0 } @@ -3223,17 +3403,19 @@ declare namespace camera { * * @typedef SmoothZoomInfo * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface SmoothZoomInfo { /** * The duration of smooth zoom. * - * @type { number } + * @type { int } * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - duration: number; + duration: int; } /** @@ -3242,30 +3424,33 @@ declare namespace camera { * @typedef ZoomPointInfo * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface ZoomPointInfo { /** * The zoom ratio value. * - * @type { number } + * @type { double } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - readonly zoomRatio: number; + readonly zoomRatio: double; /** * The equivalent focal Length. * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - readonly equivalentFocalLength: number; + readonly equivalentFocalLength: int; } /** @@ -3273,7 +3458,8 @@ declare namespace camera { * * @interface ZoomQuery * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface ZoomQuery { /** @@ -3288,12 +3474,13 @@ declare namespace camera { * Gets all supported zoom ratio range. * Move to ZoomQuery interface from Zoom since 12. * - * @returns { Array } The zoom ratio range. + * @returns { Array } The zoom ratio range. * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - getZoomRatioRange(): Array; + getZoomRatioRange(): Array; /** * Gets all important zoom ratio infos. @@ -3303,7 +3490,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getZoomPointInfos(): Array; } @@ -3314,7 +3502,8 @@ declare namespace camera { * @extends ZoomQuery * @interface Zoom * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface Zoom extends ZoomQuery { /** @@ -3328,34 +3517,37 @@ declare namespace camera { /** * Gets zoom ratio. * - * @returns { number } The zoom ratio value. + * @returns { double } The zoom ratio value. * @throws { BusinessError } 7400103 - Session not config. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - getZoomRatio(): number; + getZoomRatio(): double; /** * Sets zoom ratio. * - * @param { number } zoomRatio - Target zoom ratio. + * @param { double } zoomRatio - Target zoom ratio. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - setZoomRatio(zoomRatio: number): void; + setZoomRatio(zoomRatio: double): void; /** * Sets target zoom ratio by smooth method. * - * @param { number } targetRatio - Target zoom ratio. + * @param { double } targetRatio - Target zoom ratio. * @param { SmoothZoomMode } mode - Smooth zoom mode. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - setSmoothZoom(targetRatio: number, mode?: SmoothZoomMode): void; + setSmoothZoom(targetRatio: double, mode?: SmoothZoomMode): void; /** * Notify device to prepare for zoom. @@ -3364,7 +3556,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ prepareZoom(): void; @@ -3375,7 +3568,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ unprepareZoom(): void; } @@ -3383,7 +3577,7 @@ declare namespace camera { /** * Enum for video stabilization mode. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 @@ -3440,7 +3634,8 @@ declare namespace camera { * * @interface StabilizationQuery * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface StabilizationQuery { /** @@ -3460,7 +3655,8 @@ declare namespace camera { * @returns { boolean } Is video stabilization mode supported. * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ isVideoStabilizationModeSupported(vsMode: VideoStabilizationMode): boolean; } @@ -3471,7 +3667,8 @@ declare namespace camera { * @extends StabilizationQuery * @interface Stabilization * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface Stabilization extends StabilizationQuery { /** @@ -3480,7 +3677,8 @@ declare namespace camera { * @returns { VideoStabilizationMode } The current video stabilization mode. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ getActiveVideoStabilizationMode(): VideoStabilizationMode; @@ -3490,7 +3688,8 @@ declare namespace camera { * @param { VideoStabilizationMode } mode - video stabilization mode to set. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ setVideoStabilizationMode(mode: VideoStabilizationMode): void; } @@ -3498,10 +3697,11 @@ declare namespace camera { /** * Enumerates the camera portrait theme types. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ enum PortraitThemeType { /** @@ -3509,7 +3709,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ NATURAL = 0, @@ -3518,7 +3719,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ DELICATE = 1, @@ -3527,7 +3729,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ STYLISH = 2 } @@ -3535,7 +3738,7 @@ declare namespace camera { /** * Enumerates the camera beauty effect types. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'10','1.2':'20'} @@ -3589,7 +3792,8 @@ declare namespace camera { * @interface BeautyQuery * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface BeautyQuery { /** @@ -3611,7 +3815,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getSupportedBeautyTypes(): Array; @@ -3631,14 +3836,15 @@ declare namespace camera { * Move to BeautyQuery from Beauty since 12. * * @param { BeautyType } type - The type of beauty effect. - * @returns { Array } The array of the specific beauty effect range. + * @returns { Array } The array of the specific beauty effect range. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - getSupportedBeautyRange(type: BeautyType): Array; + getSupportedBeautyRange(type: BeautyType): Array; /** * Gets supported portrait theme type. @@ -3648,7 +3854,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ getSupportedPortraitThemeTypes(): Array; @@ -3660,7 +3867,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ isPortraitThemeSupported(): boolean; } @@ -3672,34 +3880,37 @@ declare namespace camera { * @interface Beauty * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface Beauty extends BeautyQuery { /** * Gets the beauty effect in use. * * @param { BeautyType } type - The type of beauty effect. - * @returns { number } the beauty effect in use. + * @returns { int } the beauty effect in use. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - getBeauty(type: BeautyType): number; + getBeauty(type: BeautyType): int; /** * Sets a beauty effect for a camera device. * * @param { BeautyType } type - The type of beauty effect. - * @param { number } value The number of beauty effect. + * @param { int } value The number of beauty effect. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - setBeauty(type: BeautyType, value: number): void; + setBeauty(type: BeautyType, value: int): void; /** * Sets a portrait theme type for a camera device. @@ -3710,7 +3921,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ setPortraitThemeType(type: PortraitThemeType): void; } @@ -3721,7 +3933,8 @@ declare namespace camera { * @typedef EffectSuggestion * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface EffectSuggestion { @@ -3733,7 +3946,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ isEffectSuggestionSupported(): boolean; @@ -3746,7 +3960,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ enableEffectSuggestion(enabled: boolean): void; @@ -3758,7 +3973,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getSupportedEffectSuggestionTypes(): Array; @@ -3772,7 +3988,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ setEffectSuggestionStatus(status: Array): void; @@ -3786,7 +4003,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ updateEffectSuggestion(type: EffectSuggestionType, enabled: boolean): void; } @@ -3794,10 +4012,11 @@ declare namespace camera { /** * Enumerates the camera color effect types. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ enum ColorEffectType { /** @@ -3805,7 +4024,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ NORMAL = 0, @@ -3814,7 +4034,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ BRIGHT = 1, @@ -3823,7 +4044,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ SOFT = 2, @@ -3832,7 +4054,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ BLACK_WHITE = 3 } @@ -3840,10 +4063,11 @@ declare namespace camera { /** * Enum for policy type * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ enum PolicyType { /** @@ -3851,7 +4075,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ PRIVACY = 1, } @@ -3862,7 +4087,8 @@ declare namespace camera { * @interface ColorEffectQuery * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface ColorEffectQuery { /** @@ -3884,7 +4110,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getSupportedColorEffects(): Array; } @@ -3896,7 +4123,8 @@ declare namespace camera { * @interface ColorEffect * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface ColorEffect extends ColorEffectQuery { /** @@ -3907,7 +4135,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ getColorEffect(): ColorEffectType; @@ -3919,7 +4148,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ setColorEffect(type: ColorEffectType): void; } @@ -3929,7 +4159,8 @@ declare namespace camera { * * @interface ColorManagementQuery * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface ColorManagementQuery { /** @@ -3938,7 +4169,8 @@ declare namespace camera { * @returns { Array } The array of the supported color space for the session. * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getSupportedColorSpaces(): Array; } @@ -3949,7 +4181,8 @@ declare namespace camera { * @extends ColorManagementQuery * @interface ColorManagement * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface ColorManagement extends ColorManagementQuery { /** @@ -3958,7 +4191,8 @@ declare namespace camera { * @returns { colorSpaceManager.ColorSpace } Current color space. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getActiveColorSpace(): colorSpaceManager.ColorSpace; @@ -3971,7 +4205,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ setColorSpace(colorSpace: colorSpaceManager.ColorSpace): void; } @@ -3981,7 +4216,8 @@ declare namespace camera { * * @interface AutoDeviceSwitchQuery * @syscap SystemCapability.Multimedia.Camera.Core - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface AutoDeviceSwitchQuery { /** @@ -3990,7 +4226,8 @@ declare namespace camera { * @returns { boolean } Is auto device switch supported. * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ isAutoDeviceSwitchSupported(): boolean; } @@ -4001,7 +4238,8 @@ declare namespace camera { * @extends AutoDeviceSwitchQuery * @interface AutoDeviceSwitch * @syscap SystemCapability.Multimedia.Camera.Core - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface AutoDeviceSwitch extends AutoDeviceSwitchQuery { /** @@ -4015,7 +4253,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ enableAutoDeviceSwitch(enabled: boolean): void; } @@ -4025,7 +4264,8 @@ declare namespace camera { * * @typedef AutoDeviceSwitchStatus * @syscap SystemCapability.Multimedia.Camera.Core - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface AutoDeviceSwitchStatus { /** @@ -4034,7 +4274,8 @@ declare namespace camera { * @type { boolean } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ readonly isDeviceSwitched: boolean; @@ -4044,7 +4285,8 @@ declare namespace camera { * @type { boolean } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ readonly isDeviceCapabilityChanged: boolean; } @@ -4055,7 +4297,8 @@ declare namespace camera { * @interface MacroQuery * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface MacroQuery { /** @@ -4075,7 +4318,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ isMacroSupported(): boolean; } @@ -4087,7 +4331,8 @@ declare namespace camera { * @interface Macro * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface Macro extends MacroQuery { /** @@ -4109,7 +4354,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ enableMacro(enabled: boolean): void; } @@ -4117,10 +4363,11 @@ declare namespace camera { /** * Enum for usage type used in capture session. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ enum UsageType { /** @@ -4128,7 +4375,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ BOKEH = 0 } @@ -4138,7 +4386,8 @@ declare namespace camera { * * @interface Session * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface Session { /** @@ -4154,7 +4403,8 @@ declare namespace camera { * @throws { BusinessError } 7400105 - Session config locked. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ beginConfig(): void; @@ -4165,7 +4415,8 @@ declare namespace camera { * @throws { BusinessError } 7400102 - Operation not allowed. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ commitConfig(callback: AsyncCallback): void; @@ -4176,7 +4427,8 @@ declare namespace camera { * @throws { BusinessError } 7400102 - Operation not allowed. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ commitConfig(): Promise; @@ -4187,7 +4439,8 @@ declare namespace camera { * @param { CameraInput } cameraInput - Target camera input to add. * @returns { boolean } You can add the input into the session. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ canAddInput(cameraInput: CameraInput): boolean; @@ -4212,7 +4465,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ addInput(cameraInput: CameraInput): void; @@ -4237,7 +4491,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ removeInput(cameraInput: CameraInput): void; @@ -4248,7 +4503,8 @@ declare namespace camera { * @param { CameraOutput } cameraOutput - Target camera output to add. * @returns { boolean } You can add the output into the session. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ canAddOutput(cameraOutput: CameraOutput): boolean; @@ -4273,7 +4529,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ addOutput(cameraOutput: CameraOutput): void; @@ -4298,7 +4555,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ removeOutput(cameraOutput: CameraOutput): void; @@ -4319,7 +4577,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ start(callback: AsyncCallback): void; @@ -4340,7 +4599,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ start(): Promise; @@ -4350,7 +4610,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to return the result. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ stop(callback: AsyncCallback): void; @@ -4360,7 +4621,8 @@ declare namespace camera { * @returns { Promise } Promise used to return the result. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ stop(): Promise; @@ -4370,7 +4632,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to return the result. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ release(callback: AsyncCallback): void; @@ -4380,7 +4643,8 @@ declare namespace camera { * @returns { Promise } Promise used to return the result. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ release(): Promise; @@ -4396,7 +4660,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ setUsage(usage: UsageType, enabled: boolean): void; @@ -4410,7 +4675,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ getCameraOutputCapabilities(camera: CameraDevice): Array; } @@ -4988,16 +5254,18 @@ declare namespace camera { * Types of preconfig, which used to configure session conveniently. * Preconfig type contains common use cases of camera output. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ enum PreconfigType { /** * 720P output for preconfig. * * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ PRECONFIG_720P = 0, @@ -5005,7 +5273,8 @@ declare namespace camera { * 1080P output for preconfig. * * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ PRECONFIG_1080P = 1, @@ -5013,7 +5282,8 @@ declare namespace camera { * 4K output for preconfig. * * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ PRECONFIG_4K = 2, @@ -5021,7 +5291,8 @@ declare namespace camera { * high quality output for preconfig. * * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ PRECONFIG_HIGH_QUALITY = 3 } @@ -5029,16 +5300,18 @@ declare namespace camera { /** * The aspect ratios of preconfig, which used to configure session conveniently. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ enum PreconfigRatio { /** * Aspect ratio 1:1 for preconfig. * * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ PRECONFIG_RATIO_1_1 = 0, @@ -5046,7 +5319,8 @@ declare namespace camera { * Aspect ratio 4:3 for preconfig. * * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ PRECONFIG_RATIO_4_3 = 1, @@ -5054,7 +5328,8 @@ declare namespace camera { * Aspect ratio 16:9 for preconfig. * * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ PRECONFIG_RATIO_16_9 = 2 } @@ -5062,10 +5337,11 @@ declare namespace camera { /** * Enum for feature type used in scene detection. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ enum SceneFeatureType { /** @@ -5073,7 +5349,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ MOON_CAPTURE_BOOST = 0, @@ -5082,7 +5359,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ TRIPOD_DETECTION = 1, @@ -5091,7 +5369,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ LOW_LIGHT_BOOST = 2 } @@ -5102,7 +5381,8 @@ declare namespace camera { * @typedef SceneFeatureDetectionResult * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface SceneFeatureDetectionResult { /** @@ -5112,7 +5392,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ readonly featureType: SceneFeatureType; @@ -5123,7 +5404,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ readonly detected: boolean; } @@ -5131,10 +5413,11 @@ declare namespace camera { /** * Enum for tripod status. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ enum TripodStatus { /** @@ -5142,7 +5425,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ INVALID = 0, @@ -5151,7 +5435,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ ACTIVE = 1, @@ -5160,7 +5445,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ ENTERING = 2, @@ -5169,7 +5455,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ EXITING = 3, } @@ -5181,7 +5468,8 @@ declare namespace camera { * @interface TripodDetectionResult * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface TripodDetectionResult extends SceneFeatureDetectionResult { /** @@ -5191,7 +5479,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ readonly tripodStatus: TripodStatus; } @@ -5202,7 +5491,8 @@ declare namespace camera { * @interface SceneDetectionQuery * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface SceneDetectionQuery { /** @@ -5214,7 +5504,8 @@ declare namespace camera { * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ isSceneFeatureSupported(type: SceneFeatureType): boolean; } @@ -5226,7 +5517,8 @@ declare namespace camera { * @interface SceneDetection * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface SceneDetection extends SceneDetectionQuery { /** @@ -5238,7 +5530,8 @@ declare namespace camera { * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ enableSceneFeature(type: SceneFeatureType, enabled: boolean): void; } @@ -5259,7 +5552,8 @@ declare namespace camera { * @interface PhotoSessionForSys * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ interface PhotoSessionForSys extends PhotoSession, Beauty, ColorEffect, ColorManagement, Macro, SceneDetection, EffectSuggestion, DepthFusion { } @@ -5277,7 +5571,8 @@ declare namespace camera { * @extends Session, Flash, AutoExposure, Focus, Zoom, ColorManagement, AutoDeviceSwitch * @interface PhotoSession * @syscap SystemCapability.Multimedia.Camera.Core - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface PhotoSession extends Session, Flash, AutoExposure, Focus, Zoom, ColorManagement, AutoDeviceSwitch { /** @@ -5290,7 +5585,8 @@ declare namespace camera { * @returns { boolean } Whether the choosed preconfig type can be used. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ canPreconfig(preconfigType: PreconfigType, preconfigRatio?: PreconfigRatio): boolean; @@ -5303,7 +5599,8 @@ declare namespace camera { * default value {@link PreconfigRatio#PRECONFIG_RATIO_4_3} * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ preconfig(preconfigType: PreconfigType, preconfigRatio?: PreconfigRatio): void; @@ -5313,7 +5610,8 @@ declare namespace camera { * @param { 'error' } type - Event type. * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -5323,7 +5621,8 @@ declare namespace camera { * @param { 'error' } type - Event type. * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -5333,7 +5632,8 @@ declare namespace camera { * @param { 'focusStateChange' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -5343,7 +5643,8 @@ declare namespace camera { * @param { 'focusStateChange' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -5353,7 +5654,8 @@ declare namespace camera { * @param { 'smoothZoomInfoAvailable' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the zoom info. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -5363,7 +5665,8 @@ declare namespace camera { * @param { 'smoothZoomInfoAvailable' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the zoom info. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; @@ -5375,7 +5678,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'macroStatusChanged', callback: AsyncCallback): void; @@ -5387,7 +5691,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'macroStatusChanged', callback?: AsyncCallback): void; @@ -5400,7 +5705,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'featureDetection', featureType: SceneFeatureType, callback: AsyncCallback): void; @@ -5413,7 +5719,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'featureDetection', featureType: SceneFeatureType, callback?: AsyncCallback): void; @@ -5424,7 +5731,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'effectSuggestionChange', callback: AsyncCallback): void; @@ -5435,7 +5743,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'effectSuggestionChange', callback?: AsyncCallback): void; @@ -5445,7 +5754,8 @@ declare namespace camera { * @param { 'autoDeviceSwitchStatusChange' } type - Event type. * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'autoDeviceSwitchStatusChange', callback: AsyncCallback): void; @@ -5455,7 +5765,8 @@ declare namespace camera { * @param { 'autoDeviceSwitchStatusChange' } type - Event type. * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'autoDeviceSwitchStatusChange', callback?: AsyncCallback): void; @@ -5467,7 +5778,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'lcdFlashStatus', callback: AsyncCallback): void; @@ -5479,7 +5791,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'lcdFlashStatus', callback?: AsyncCallback): void; @@ -5492,7 +5805,8 @@ declare namespace camera { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ getSessionFunctions(outputCapability: CameraOutputCapability): Array; @@ -5503,7 +5817,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ getSessionConflictFunctions(): Array; } @@ -5524,7 +5839,8 @@ declare namespace camera { * @interface VideoSessionForSys * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ interface VideoSessionForSys extends VideoSession, Beauty, ColorEffect, ColorManagement, Macro, Aperture, ColorReservation { } @@ -5532,16 +5848,18 @@ declare namespace camera { /** * Enum for quality prioritization. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ enum QualityPrioritization { /** * High quality priority. * * @syscap SystemCapability.Multimedia.Camera.Core - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ HIGH_QUALITY = 0, @@ -5549,7 +5867,8 @@ declare namespace camera { * Power balance priority. * * @syscap SystemCapability.Multimedia.Camera.Core - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ POWER_BALANCE = 1 } @@ -5568,7 +5887,8 @@ declare namespace camera { * @interface VideoSession * @extends AutoDeviceSwitch * @syscap SystemCapability.Multimedia.Camera.Core - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface VideoSession extends Session, Flash, AutoExposure, Focus, Zoom, Stabilization, ColorManagement, AutoDeviceSwitch { /** @@ -5581,7 +5901,8 @@ declare namespace camera { * @returns { boolean } Whether the choosed preconfig type can be used. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ canPreconfig(preconfigType: PreconfigType, preconfigRatio?: PreconfigRatio): boolean; @@ -5594,7 +5915,8 @@ declare namespace camera { * default value {@link PreconfigRatio#PRECONFIG_RATIO_16_9}. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ preconfig(preconfigType: PreconfigType, preconfigRatio?: PreconfigRatio): void; @@ -5604,7 +5926,8 @@ declare namespace camera { * @param { 'error' } type - Event type. * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -5614,7 +5937,8 @@ declare namespace camera { * @param { 'error' } type - Event type. * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -5624,7 +5948,8 @@ declare namespace camera { * @param { 'focusStateChange' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -5634,7 +5959,8 @@ declare namespace camera { * @param { 'focusStateChange' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -5644,7 +5970,8 @@ declare namespace camera { * @param { 'smoothZoomInfoAvailable' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the zoom info. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -5654,7 +5981,8 @@ declare namespace camera { * @param { 'smoothZoomInfoAvailable' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the zoom info. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; @@ -5666,7 +5994,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'macroStatusChanged', callback: AsyncCallback): void; @@ -5678,7 +6007,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'macroStatusChanged', callback?: AsyncCallback): void; @@ -5690,7 +6020,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'lcdFlashStatus', callback: AsyncCallback): void; @@ -5702,7 +6033,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'lcdFlashStatus', callback?: AsyncCallback): void; @@ -5712,7 +6044,8 @@ declare namespace camera { * @param { 'autoDeviceSwitchStatusChange' } type - Event type. * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'autoDeviceSwitchStatusChange', callback: AsyncCallback): void; @@ -5722,7 +6055,8 @@ declare namespace camera { * @param { 'autoDeviceSwitchStatusChange' } type - Event type. * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'autoDeviceSwitchStatusChange', callback?: AsyncCallback): void; @@ -5734,7 +6068,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusTrackingInfoAvailable', callback: Callback): void; @@ -5746,7 +6081,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusTrackingInfoAvailable', callback?: Callback): void; @@ -5759,7 +6095,8 @@ declare namespace camera { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ getSessionFunctions(outputCapability: CameraOutputCapability): Array; @@ -5770,7 +6107,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ getSessionConflictFunctions(): Array; @@ -5785,7 +6123,8 @@ declare namespace camera { * 3. Parameter verification failed. * @throws { BusinessError } 7400103 - Session not config. The session has not been committed or configured. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ setQualityPrioritization(quality : QualityPrioritization) : void; @@ -5797,7 +6136,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'lightStatusChange', callback: AsyncCallback): void; @@ -5809,7 +6149,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'lightStatusChange', callback?: AsyncCallback): void; } @@ -5817,10 +6158,11 @@ declare namespace camera { /** * Enum for the camera light status. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ enum LightStatus { /** @@ -5828,7 +6170,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ NORMAL = 0, @@ -5837,7 +6180,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ INSUFFICIENT = 1 } @@ -5845,10 +6189,11 @@ declare namespace camera { /** * Enumerates the camera portrait effects. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ enum PortraitEffect { /** @@ -5856,7 +6201,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ OFF = 0, @@ -5865,7 +6211,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ CIRCLES = 1, @@ -5874,7 +6221,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ HEART = 2, @@ -5883,7 +6231,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ ROTATED = 3, @@ -5892,7 +6241,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ STUDIO = 4, @@ -5901,7 +6251,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ THEATER = 5 } @@ -5912,7 +6263,8 @@ declare namespace camera { * @interface PortraitQuery * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface PortraitQuery { /** @@ -5944,7 +6296,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getSupportedPortraitEffects(): Array; } @@ -5956,7 +6309,8 @@ declare namespace camera { * @interface Portrait * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface Portrait extends PortraitQuery { /** @@ -5977,7 +6331,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ getPortraitEffect(): PortraitEffect; @@ -5999,7 +6354,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ setPortraitEffect(effect: PortraitEffect): void; } @@ -6010,30 +6366,33 @@ declare namespace camera { * @typedef ZoomRange * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface ZoomRange { /** * Min zoom value. * - * @type { number } + * @type { double } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - readonly min: number; + readonly min: double; /** * Max zoom value. * - * @type { number } + * @type { double } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - readonly max: number; + readonly max: double; } /** @@ -6042,7 +6401,8 @@ declare namespace camera { * @typedef PhysicalAperture * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface PhysicalAperture { /** @@ -6051,19 +6411,21 @@ declare namespace camera { * @type { ZoomRange } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ zoomRange: ZoomRange; /** * The supported physical apertures. * - * @type { Array } + * @type { Array } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - apertures: Array; + apertures: Array; } /** @@ -6072,7 +6434,8 @@ declare namespace camera { * @interface ApertureQuery * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface ApertureQuery { /** @@ -6089,14 +6452,15 @@ declare namespace camera { * Gets the supported virtual apertures. * Move to ApertureQuery interface from Aperture since 12. * - * @returns { Array } The array of supported virtual apertures. + * @returns { Array } The array of supported virtual apertures. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - getSupportedVirtualApertures(): Array; + getSupportedVirtualApertures(): Array; /** * Gets the supported physical apertures. @@ -6117,7 +6481,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getSupportedPhysicalApertures(): Array; } @@ -6129,56 +6494,61 @@ declare namespace camera { * @interface Aperture * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface Aperture extends ApertureQuery { /** * Gets current virtual aperture value. * - * @returns { number } The current virtual aperture value. + * @returns { double } The current virtual aperture value. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - getVirtualAperture(): number; + getVirtualAperture(): double; /** * Sets virtual aperture value. * - * @param { number } aperture - virtual aperture value + * @param { double } aperture - virtual aperture value * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - setVirtualAperture(aperture: number): void; + setVirtualAperture(aperture: double): void; /** * Gets current physical aperture value. * - * @returns { number } The current physical aperture value. + * @returns { double } The current physical aperture value. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - getPhysicalAperture(): number; + getPhysicalAperture(): double; /** * Sets physical aperture value. * - * @param { number } aperture - physical aperture value + * @param { double } aperture - physical aperture value * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - setPhysicalAperture(aperture: number): void; + setPhysicalAperture(aperture: double): void; } /** @@ -6188,7 +6558,8 @@ declare namespace camera { * @interface PortraitPhotoSession * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface PortraitPhotoSession extends Session, Flash, AutoExposure, Focus, Zoom, Beauty, ColorEffect, ColorManagement, Portrait, Aperture { /** @@ -6198,7 +6569,8 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -6209,7 +6581,8 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -6220,7 +6593,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -6231,7 +6605,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -6242,7 +6617,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the zoom info. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -6253,7 +6629,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the zoom info. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; @@ -6265,7 +6642,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'lcdFlashStatus', callback: AsyncCallback): void; @@ -6277,7 +6655,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'lcdFlashStatus', callback?: AsyncCallback): void; @@ -6290,7 +6669,8 @@ declare namespace camera { * @throws { BusinessError } 401 - Parameter error. Possible causes: 1.Mandatory parameters are left unspecified. 2.Incorrect parameter types. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ getSessionFunctions(outputCapability: CameraOutputCapability): Array; @@ -6301,7 +6681,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ getSessionConflictFunctions(): Array; } @@ -6313,7 +6694,8 @@ declare namespace camera { * @interface ApertureVideoSession * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface ApertureVideoSession extends Session, Flash, AutoExposure, Focus, Zoom, ColorEffect, Aperture { /** @@ -6324,7 +6706,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -6336,7 +6719,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -6348,7 +6732,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -6360,7 +6745,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -6372,7 +6758,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -6384,7 +6771,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; } @@ -6395,7 +6783,8 @@ declare namespace camera { * @interface ManualExposureQuery * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface ManualExposureQuery { /** @@ -6412,15 +6801,16 @@ declare namespace camera { * Gets the supported manual exposure range. * Move to ManualExposureQuery from ManualExposure since 12. * - * @returns { Array } The array of manual exposure range. + * @returns { Array } The array of manual exposure range. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - getSupportedExposureRange(): Array; + getSupportedExposureRange(): Array; } /** @@ -6430,7 +6820,8 @@ declare namespace camera { * @interface ManualExposure * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface ManualExposure extends ManualExposureQuery { /** @@ -6446,15 +6837,16 @@ declare namespace camera { /** * Gets current exposure value. * - * @returns { number } The current exposure value. + * @returns { int } The current exposure value. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - getExposure(): number; + getExposure(): int; /** * Sets Exposure value. @@ -6469,15 +6861,16 @@ declare namespace camera { /** * Sets Exposure value. * - * @param { number } exposure - Exposure value + * @param { int } exposure - Exposure value * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400102 - Operation not allowed. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - setExposure(exposure: number): void; + setExposure(exposure: int): void; } /** @@ -6487,7 +6880,8 @@ declare namespace camera { * @interface NightPhotoSession * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface NightPhotoSession extends Session, Flash, AutoExposure, Focus, Zoom, ColorEffect, Beauty, ColorManagement, ManualExposure { /** @@ -6497,7 +6891,8 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -6508,7 +6903,8 @@ declare namespace camera { * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -6519,7 +6915,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -6530,7 +6927,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -6541,7 +6939,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the zoom info. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -6552,7 +6951,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to get the zoom info. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; @@ -6564,7 +6964,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'lcdFlashStatus', callback: AsyncCallback): void; @@ -6576,7 +6977,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'lcdFlashStatus', callback?: AsyncCallback): void; } @@ -6587,19 +6989,21 @@ declare namespace camera { * @typedef IsoInfo * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface IsoInfo { /** * ISO value. * - * @type { ?number } + * @type { ?int } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - readonly iso?: number; + readonly iso?: int; } /** @@ -6608,19 +7012,21 @@ declare namespace camera { * @typedef ExposureInfo * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface ExposureInfo { /** * Exposure time value. * - * @type { ?number } + * @type { ?int } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - readonly exposureTime?: number; + readonly exposureTime?: int; } /** @@ -6629,19 +7035,21 @@ declare namespace camera { * @typedef ApertureInfo * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface ApertureInfo { /** * Aperture value. * - * @type { ?number } + * @type { ?double } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - readonly aperture?: number; + readonly aperture?: double; } /** @@ -6650,19 +7058,21 @@ declare namespace camera { * @typedef LuminationInfo * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface LuminationInfo { /** * Lumination value. * - * @type { ?number } + * @type { ?double } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - readonly lumination?: number; + readonly lumination?: double; } /** @@ -6671,7 +7081,8 @@ declare namespace camera { * @interface ProfessionalPhotoSession * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface ProfessionalPhotoSession extends Session, AutoExposure, ManualExposure, Focus, ManualFocus, WhiteBalance, ManualIso, Flash, Zoom, ColorEffect, Aperture { /** @@ -6682,7 +7093,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -6694,7 +7106,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -6706,7 +7119,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -6718,7 +7132,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -6730,7 +7145,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -6742,7 +7158,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; @@ -6754,7 +7171,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'isoInfoChange', callback: AsyncCallback): void; @@ -6766,7 +7184,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'isoInfoChange', callback?: AsyncCallback): void; @@ -6778,7 +7197,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'exposureInfoChange', callback: AsyncCallback): void; @@ -6790,7 +7210,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'exposureInfoChange', callback?: AsyncCallback): void; @@ -6802,7 +7223,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'apertureInfoChange', callback: AsyncCallback): void; @@ -6814,7 +7236,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'apertureInfoChange', callback?: AsyncCallback): void; @@ -6826,7 +7249,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'luminationInfoChange', callback: AsyncCallback): void; @@ -6838,7 +7262,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'luminationInfoChange', callback?: AsyncCallback): void; } @@ -6850,7 +7275,8 @@ declare namespace camera { * @interface ProfessionalVideoSession * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface ProfessionalVideoSession extends Session, AutoExposure, ManualExposure, Focus, ManualFocus, WhiteBalance, ManualIso, Flash, Zoom, ColorEffect, Aperture { /** @@ -6861,7 +7287,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -6873,7 +7300,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -6885,7 +7313,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -6897,7 +7326,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -6909,7 +7339,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -6921,7 +7352,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; @@ -6933,7 +7365,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'isoInfoChange', callback: AsyncCallback): void; @@ -6945,7 +7378,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'isoInfoChange', callback?: AsyncCallback): void; @@ -6957,7 +7391,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'exposureInfoChange', callback: AsyncCallback): void; @@ -6969,7 +7404,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'exposureInfoChange', callback?: AsyncCallback): void; @@ -6981,7 +7417,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'apertureInfoChange', callback: AsyncCallback): void; @@ -6993,7 +7430,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'apertureInfoChange', callback?: AsyncCallback): void; @@ -7005,7 +7443,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'luminationInfoChange', callback: AsyncCallback): void; @@ -7017,7 +7456,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'luminationInfoChange', callback?: AsyncCallback): void; } @@ -7025,10 +7465,11 @@ declare namespace camera { /** * Enum for slow motion status. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ enum SlowMotionStatus { /** @@ -7036,7 +7477,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ DISABLED = 0, @@ -7045,7 +7487,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ READY = 1, @@ -7054,7 +7497,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ VIDEO_START = 2, @@ -7063,7 +7507,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ VIDEO_DONE = 3, @@ -7072,7 +7517,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ FINISHED = 4 } @@ -7084,7 +7530,8 @@ declare namespace camera { * @interface SlowMotionVideoSession * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface SlowMotionVideoSession extends Session, Flash, AutoExposure, Focus, Zoom, ColorEffect { /** @@ -7095,7 +7542,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -7107,7 +7555,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -7119,7 +7568,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -7131,7 +7581,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -7143,7 +7594,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -7155,7 +7607,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; @@ -7167,7 +7620,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ isSlowMotionDetectionSupported(): boolean; @@ -7180,7 +7634,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ setSlowMotionDetectionArea(area: Rect): void; @@ -7192,7 +7647,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'slowMotionStatus', callback: AsyncCallback): void; @@ -7204,7 +7660,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'slowMotionStatus', callback?: AsyncCallback): void; } @@ -7216,7 +7673,8 @@ declare namespace camera { * @interface HighResolutionPhotoSession * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface HighResolutionPhotoSession extends Session, AutoExposure, Focus { /** @@ -7227,7 +7685,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -7239,7 +7698,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -7251,7 +7711,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -7263,7 +7724,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; } @@ -7293,7 +7755,8 @@ declare namespace camera { * @interface MacroPhotoSession * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ interface MacroPhotoSession extends Session, Flash, AutoExposure, Focus, Zoom, ColorEffect, ManualFocus, DepthFusion, ColorManagement { /** @@ -7304,7 +7767,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -7316,7 +7780,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -7328,7 +7793,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -7340,7 +7806,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -7352,7 +7819,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -7364,7 +7832,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; } @@ -7385,7 +7854,8 @@ declare namespace camera { * @interface MacroVideoSession * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ interface MacroVideoSession extends Session, Flash, AutoExposure, Focus, Zoom, ColorEffect, ManualFocus, ColorManagement { /** @@ -7396,7 +7866,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -7408,7 +7879,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -7420,7 +7892,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -7432,7 +7905,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -7444,7 +7918,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -7456,7 +7931,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; } @@ -7467,7 +7943,8 @@ declare namespace camera { * @extends Session, Flash, AutoExposure, Focus, Zoom * @interface SecureSession * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface SecureSession extends Session, Flash, AutoExposure, Focus, Zoom { /** @@ -7478,7 +7955,8 @@ declare namespace camera { * @throws { BusinessError } 7400102 - Operation not allowed. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ addSecureOutput(previewOutput: PreviewOutput): void; @@ -7488,7 +7966,8 @@ declare namespace camera { * @param { 'error' } type - Event type. * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -7498,7 +7977,8 @@ declare namespace camera { * @param { 'error' } type - Event type. * @param { ErrorCallback } callback - Callback used to get the capture session errors. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -7508,7 +7988,8 @@ declare namespace camera { * @param { 'focusStateChange' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -7518,7 +7999,8 @@ declare namespace camera { * @param { 'focusStateChange' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the focus state change. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; } @@ -7530,7 +8012,8 @@ declare namespace camera { * @interface LightPaintingPhotoSession * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface LightPaintingPhotoSession extends Session, Flash, Focus, Zoom, ColorEffect { /** @@ -7541,7 +8024,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -7553,7 +8037,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -7565,7 +8050,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -7577,7 +8063,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -7589,7 +8076,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -7601,7 +8089,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; @@ -7613,7 +8102,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getLightPaintingType(): LightPaintingType; @@ -7626,7 +8116,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ setLightPaintingType(type: LightPaintingType): void; @@ -7638,7 +8129,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getSupportedLightPaintingTypes(): Array; } @@ -7650,7 +8142,8 @@ declare namespace camera { * @interface QuickShotPhotoSession * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface QuickShotPhotoSession extends Session, AutoExposure, ColorEffect, ColorManagement, EffectSuggestion, Flash, Focus, Zoom { /** @@ -7661,7 +8154,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -7673,7 +8167,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -7685,7 +8180,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'effectSuggestionChange', callback: AsyncCallback): void; @@ -7697,7 +8193,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'effectSuggestionChange', callback?: AsyncCallback): void; @@ -7709,7 +8206,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -7721,7 +8219,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -7733,7 +8232,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'smoothZoomInfoAvailable', callback: AsyncCallback): void; @@ -7745,7 +8245,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'smoothZoomInfoAvailable', callback?: AsyncCallback): void; } @@ -7757,7 +8258,8 @@ declare namespace camera { * @interface PanoramaPhotoSession * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface PanoramaPhotoSession extends Session, Focus, AutoExposure, WhiteBalance, ColorEffect { /** @@ -7768,7 +8270,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -7780,7 +8283,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -7792,7 +8296,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -7804,7 +8309,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; } @@ -7816,7 +8322,8 @@ declare namespace camera { * @interface FluorescencePhotoSession * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface FluorescencePhotoSession extends Session, AutoExposure, Focus, Zoom { /** @@ -7827,7 +8334,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -7839,7 +8347,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -7851,7 +8360,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -7863,7 +8373,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; } @@ -7875,7 +8386,8 @@ declare namespace camera { * @interface PhotoFunctions * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface PhotoFunctions extends FlashQuery, AutoExposureQuery, ManualExposureQuery, FocusQuery, ZoomQuery, BeautyQuery, ColorEffectQuery, ColorManagementQuery, MacroQuery, SceneDetectionQuery { } @@ -7887,7 +8399,8 @@ declare namespace camera { * @interface VideoFunctions * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface VideoFunctions extends FlashQuery, AutoExposureQuery, ManualExposureQuery, FocusQuery, ZoomQuery, StabilizationQuery, BeautyQuery, ColorEffectQuery, ColorManagementQuery, MacroQuery, SceneDetectionQuery { } @@ -7899,7 +8412,8 @@ declare namespace camera { * @interface PortraitPhotoFunctions * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface PortraitPhotoFunctions extends FlashQuery, AutoExposureQuery, FocusQuery, ZoomQuery, BeautyQuery, ColorEffectQuery, ColorManagementQuery, PortraitQuery, ApertureQuery, SceneDetectionQuery { } @@ -7911,7 +8425,8 @@ declare namespace camera { * @interface PhotoConflictFunctions * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface PhotoConflictFunctions extends ZoomQuery, MacroQuery { } @@ -7923,7 +8438,8 @@ declare namespace camera { * @interface VideoConflictFunctions * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface VideoConflictFunctions extends ZoomQuery, MacroQuery { } @@ -7935,7 +8451,8 @@ declare namespace camera { * @extends ZoomQuery, PortraitQuery, ApertureQuery * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface PortraitPhotoConflictFunctions extends ZoomQuery, PortraitQuery, ApertureQuery { } @@ -7945,7 +8462,8 @@ declare namespace camera { * * @interface CameraOutput * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface CameraOutput { /** @@ -7954,7 +8472,8 @@ declare namespace camera { * @param { AsyncCallback } callback - Callback used to return the result. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ release(callback: AsyncCallback): void; @@ -7964,7 +8483,8 @@ declare namespace camera { * @returns { Promise } Promise used to return the result. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ release(): Promise; } @@ -7983,24 +8503,24 @@ declare namespace camera { * Status of the sketch stream. * 0 is stop, and 1 is start. * - * @type { number } + * @type { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'11','1.2':'20'} * @arkts 1.1&1.2 */ - status: number; + status: int; /** * The zoom ratio of the sketch stream. * - * @type { number } + * @type { double } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'11','1.2':'20'} * @arkts 1.1&1.2 */ - sketchRatio: number; + sketchRatio: double; } /** @@ -8009,7 +8529,8 @@ declare namespace camera { * @extends CameraOutput * @interface PreviewOutput * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface PreviewOutput extends CameraOutput { /** @@ -8064,7 +8585,8 @@ declare namespace camera { * @param { 'frameStart' } type - Event type. * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'frameStart', callback: AsyncCallback): void; @@ -8074,7 +8596,8 @@ declare namespace camera { * @param { 'frameStart' } type - Event type. * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'frameStart', callback?: AsyncCallback): void; @@ -8084,7 +8607,8 @@ declare namespace camera { * @param { 'frameEnd' } type - Event type. * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'frameEnd', callback: AsyncCallback): void; @@ -8094,7 +8618,8 @@ declare namespace camera { * @param { 'frameEnd' } type - Event type. * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'frameEnd', callback?: AsyncCallback): void; @@ -8104,7 +8629,8 @@ declare namespace camera { * @param { 'error' } type - Event type. * @param { ErrorCallback } callback - Callback used to get the preview output errors. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -8114,7 +8640,8 @@ declare namespace camera { * @param { 'error' } type - Event type. * @param { ErrorCallback } callback - Callback used to get the preview output errors. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -8123,28 +8650,31 @@ declare namespace camera { * * @returns { Array } The array of supported frame rate range. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - getSupportedFrameRates(): Array + getSupportedFrameRates(): Array; /** * Set a frame rate range. * - * @param { number } minFps - Minimum frame rate per second. - * @param { number } maxFps - Maximum frame rate per second. + * @param { int } minFps - Minimum frame rate per second. + * @param { int } maxFps - Maximum frame rate per second. * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400110 - Unresolved conflicts with current configurations. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - setFrameRate(minFps: number, maxFps: number): void + setFrameRate(minFps: int, maxFps: int): void; /** * Get active frame rate range which has been set before. * * @returns { FrameRateRange } The active frame rate range. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getActiveFrameRate(): FrameRateRange; @@ -8154,21 +8684,23 @@ declare namespace camera { * @returns { Profile } The current preconfig type. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getActiveProfile(): Profile; /** * Gets the preview rotation angle. * - * @param { number } displayRotation - The current display rotation angle. + * @param { int } displayRotation - The current display rotation angle. * @returns { ImageRotation } The preview rotation angle. * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - getPreviewRotation(displayRotation: number): ImageRotation; + getPreviewRotation(displayRotation: int): ImageRotation; /** * Sets the preview rotation angle. @@ -8178,7 +8710,8 @@ declare namespace camera { * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ setPreviewRotation(previewRotation: ImageRotation, isDisplayLocked?: boolean): void; @@ -8199,7 +8732,8 @@ declare namespace camera { * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ addDeferredSurface(surfaceId: string): void; @@ -8210,21 +8744,23 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ isSketchSupported(): boolean; /** * Gets the specific zoom ratio when sketch stream open. * - * @returns { number } The specific zoom ratio of sketch. + * @returns { double } The specific zoom ratio of sketch. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ - getSketchRatio(): number; + getSketchRatio(): double; /** * Enable sketch for camera. @@ -8246,7 +8782,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ enableSketch(enabled: boolean): void; @@ -8270,7 +8807,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ attachSketchSurface(surfaceId: string): void; @@ -8282,7 +8820,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'sketchStatusChanged', callback: AsyncCallback): void; @@ -8294,7 +8833,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'sketchStatusChanged', callback?: AsyncCallback): void; } @@ -8302,10 +8842,11 @@ declare namespace camera { /** * Enum for effect suggestion. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ enum EffectSuggestionType { /** @@ -8313,7 +8854,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ EFFECT_SUGGESTION_NONE = 0, /** @@ -8321,7 +8863,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ EFFECT_SUGGESTION_PORTRAIT = 1, /** @@ -8329,7 +8872,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ EFFECT_SUGGESTION_FOOD = 2, @@ -8338,7 +8882,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ EFFECT_SUGGESTION_SKY = 3, @@ -8347,7 +8892,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ EFFECT_SUGGESTION_SUNRISE_SUNSET = 4 } @@ -8357,7 +8903,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ class EffectSuggestionStatus { /** @@ -8366,7 +8913,8 @@ declare namespace camera { * @type { EffectSuggestionType } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ type: EffectSuggestionType; /** @@ -8375,7 +8923,8 @@ declare namespace camera { * @type { boolean } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ status: boolean; } @@ -8383,7 +8932,7 @@ declare namespace camera { /** * Enumerates the image rotation angles. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 @@ -8438,38 +8987,38 @@ declare namespace camera { /** * Latitude. * - * @type { number } + * @type { double } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ - latitude: number; + latitude: double; /** * Longitude. * - * @type { number } + * @type { double } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ - longitude: number; + longitude: double; /** * Altitude. * - * @type { number } + * @type { double } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ - altitude: number; + altitude: double; } /** * Enumerates the image quality levels. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 @@ -8556,7 +9105,7 @@ declare namespace camera { /** * Enumerates the delivery image types. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'11','1.2':'20'} @@ -8599,7 +9148,8 @@ declare namespace camera { * * @typedef Photo * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface Photo { /** @@ -8636,7 +9186,8 @@ declare namespace camera { * * @returns { Promise } Promise used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ release(): Promise; } @@ -8647,7 +9198,8 @@ declare namespace camera { * @typedef DeferredPhotoProxy * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ interface DeferredPhotoProxy { /** @@ -8668,7 +9220,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ release(): Promise; } @@ -8676,7 +9229,7 @@ declare namespace camera { /** * Enumerates the camera video codec type. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'13','1.2':'20'} * @arkts 1.1&1.2 @@ -8707,7 +9260,8 @@ declare namespace camera { * @extends CameraOutput * @interface PhotoOutput * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface PhotoOutput extends CameraOutput { /** @@ -8717,7 +9271,8 @@ declare namespace camera { * @throws { BusinessError } 7400104 - Session not running. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ capture(callback: AsyncCallback): void; @@ -8728,7 +9283,8 @@ declare namespace camera { * @throws { BusinessError } 7400104 - Session not running. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ capture(): Promise; @@ -8741,7 +9297,8 @@ declare namespace camera { * @throws { BusinessError } 7400104 - Session not running. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ capture(setting: PhotoCaptureSetting, callback: AsyncCallback): void; @@ -8766,7 +9323,8 @@ declare namespace camera { * @throws { BusinessError } 7400104 - Session not running. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ capture(setting: PhotoCaptureSetting): Promise; @@ -8781,7 +9339,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ burstCapture(setting: PhotoCaptureSetting): Promise; @@ -8806,7 +9365,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ isRawDeliverySupported(): boolean; @@ -8820,7 +9380,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ enableRawDelivery(enabled: boolean): void; @@ -8835,7 +9396,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ isDeferredImageDeliverySupported(type: DeferredDeliveryImageType): boolean; @@ -8850,7 +9412,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ isDeferredImageDeliveryEnabled(type: DeferredDeliveryImageType): boolean; @@ -8864,7 +9427,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ deferImageDelivery(type: DeferredDeliveryImageType): void; @@ -8877,7 +9441,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ isDepthDataDeliverySupported(): boolean; @@ -8891,7 +9456,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ enableDepthDataDelivery(enabled: boolean): void; @@ -8901,7 +9467,8 @@ declare namespace camera { * @returns { Array } An array of supported video codec types for moving photo. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ getSupportedMovingPhotoVideoCodecTypes(): Array; @@ -8911,7 +9478,8 @@ declare namespace camera { * @param { VideoCodecType } codecType - Codec type for moving photo. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ setMovingPhotoVideoCodecType(codecType: VideoCodecType): void; @@ -8921,7 +9489,8 @@ declare namespace camera { * @param { 'photoAvailable' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the Photo. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'photoAvailable', callback: AsyncCallback): void; @@ -8931,7 +9500,8 @@ declare namespace camera { * @param { 'photoAvailable' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the Photo. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'photoAvailable', callback?: AsyncCallback): void; @@ -8943,7 +9513,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'deferredPhotoProxyAvailable', callback: AsyncCallback): void; @@ -8955,7 +9526,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'deferredPhotoProxyAvailable', callback?: AsyncCallback): void; @@ -8965,7 +9537,8 @@ declare namespace camera { * @param { 'photoAssetAvailable' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the asset. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'photoAssetAvailable', callback: AsyncCallback): void; @@ -8975,7 +9548,8 @@ declare namespace camera { * @param { 'photoAssetAvailable' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the asset. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'photoAssetAvailable', callback?: AsyncCallback): void; @@ -8984,7 +9558,8 @@ declare namespace camera { * * @returns { boolean } Is the mirror supported. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ isMirrorSupported(): boolean; @@ -8996,7 +9571,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ enableMirror(enabled: boolean): void; @@ -9030,7 +9606,8 @@ declare namespace camera { * @param { 'captureStartWithInfo' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the capture start info. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'captureStartWithInfo', callback: AsyncCallback): void; @@ -9040,7 +9617,8 @@ declare namespace camera { * @param { 'captureStartWithInfo' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the capture start info. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 11 + * @since arkts {'1.1':'11','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'captureStartWithInfo', callback?: AsyncCallback): void; @@ -9050,7 +9628,8 @@ declare namespace camera { * @param { 'frameShutter' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the frame shutter information. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'frameShutter', callback: AsyncCallback): void; @@ -9060,7 +9639,8 @@ declare namespace camera { * @param { 'frameShutter' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the frame shutter information. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'frameShutter', callback?: AsyncCallback): void; @@ -9070,7 +9650,8 @@ declare namespace camera { * @param { 'frameShutterEnd' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the frame shutter end information. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'frameShutterEnd', callback: AsyncCallback): void; @@ -9080,7 +9661,8 @@ declare namespace camera { * @param { 'frameShutterEnd' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the frame shutter end information. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'frameShutterEnd', callback?: AsyncCallback): void; @@ -9090,7 +9672,8 @@ declare namespace camera { * @param { 'captureEnd' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the capture end information. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'captureEnd', callback: AsyncCallback): void; @@ -9100,7 +9683,8 @@ declare namespace camera { * @param { 'captureEnd' } type - Event type. * @param { AsyncCallback } callback - Callback used to get the capture end information. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'captureEnd', callback?: AsyncCallback): void; @@ -9110,7 +9694,8 @@ declare namespace camera { * @param { 'captureReady' } type - Event type. * @param { AsyncCallback } callback - Callback used to notice capture ready. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'captureReady', callback: AsyncCallback): void; @@ -9120,7 +9705,8 @@ declare namespace camera { * @param { 'captureReady' } type - Event type. * @param { AsyncCallback } callback - Callback used to notice capture ready. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'captureReady', callback?: AsyncCallback): void; @@ -9128,21 +9714,23 @@ declare namespace camera { * Subscribes estimated capture duration event callback. * * @param { 'estimatedCaptureDuration' } type - Event type. - * @param { AsyncCallback } callback - Callback used to notify the estimated capture duration (in milliseconds). + * @param { AsyncCallback } callback - Callback used to notify the estimated capture duration (in milliseconds). * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - on(type: 'estimatedCaptureDuration', callback: AsyncCallback): void; + on(type: 'estimatedCaptureDuration', callback: AsyncCallback): void; /** * Unsubscribes from estimated capture duration event callback. * * @param { 'estimatedCaptureDuration' } type - Event type. - * @param { AsyncCallback } callback - Callback used to notify the estimated capture duration (in milliseconds). + * @param { AsyncCallback } callback - Callback used to notify the estimated capture duration (in milliseconds). * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - off(type: 'estimatedCaptureDuration', callback?: AsyncCallback): void; + off(type: 'estimatedCaptureDuration', callback?: AsyncCallback): void; /** * Subscribes to error events. @@ -9150,7 +9738,8 @@ declare namespace camera { * @param { 'error' } type - Event type. * @param { ErrorCallback } callback - Callback used to get the photo output errors. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -9160,7 +9749,8 @@ declare namespace camera { * @param { 'error' } type - Event type. * @param { ErrorCallback } callback - Callback used to get the photo output errors. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -9170,7 +9760,8 @@ declare namespace camera { * @returns { Profile } The current preconfig type. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getActiveProfile(): Profile; @@ -9193,7 +9784,8 @@ declare namespace camera { * @throws { BusinessError } 7400104 - session is not running. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ isQuickThumbnailSupported(): boolean; @@ -9222,7 +9814,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ enableQuickThumbnail(enabled: boolean): void; @@ -9259,7 +9852,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ isAutoHighQualityPhotoSupported(): boolean; @@ -9273,7 +9867,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ enableAutoHighQualityPhoto(enabled: boolean): void; @@ -9285,7 +9880,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ isAutoCloudImageEnhancementSupported(): boolean; @@ -9298,7 +9894,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ enableAutoCloudImageEnhancement(enabled: boolean): void; @@ -9308,7 +9905,8 @@ declare namespace camera { * @returns { boolean } TRUE if the moving photo is supported. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ isMovingPhotoSupported(): boolean; @@ -9321,21 +9919,23 @@ declare namespace camera { * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ enableMovingPhoto(enabled: boolean): void; /** * Gets the photo rotation angle. * - * @param { number } deviceDegree - The current device rotation degree. + * @param { int } deviceDegree - The current device rotation degree. * @returns { ImageRotation } The photo rotation angle. * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - getPhotoRotation(deviceDegree: number): ImageRotation; + getPhotoRotation(deviceDegree: int): ImageRotation; /** * Confirm if offline processing is supported. @@ -9345,7 +9945,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ isOfflineSupported(): boolean; @@ -9357,7 +9958,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ enableOffline(): void; @@ -9370,7 +9972,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'offlineDeliveryFinished', callback: AsyncCallback): void; @@ -9383,7 +9986,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'offlineDeliveryFinished', callback?: AsyncCallback): void } @@ -9400,21 +10004,21 @@ declare namespace camera { /** * Capture id. * - * @type { number } + * @type { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ - captureId: number; + captureId: int; /** * Timestamp for frame. * - * @type { number } + * @type { long } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ - timestamp: number; + timestamp: long; } /** @@ -9429,12 +10033,12 @@ declare namespace camera { /** * Capture id. * - * @type { number } + * @type { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'12','1.2':'20'} * @arkts 1.1&1.2 */ - captureId: number; + captureId: int; } /** @@ -9449,21 +10053,21 @@ declare namespace camera { /** * Capture id. * - * @type { number } + * @type { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'11','1.2':'20'} * @arkts 1.1&1.2 */ - captureId: number; + captureId: int; /** * Time(in milliseconds) is the shutter time for the photo. * - * @type { number } + * @type { long } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'11','1.2':'20'} * @arkts 1.1&1.2 */ - time: number; + time: long; } /** @@ -9478,21 +10082,21 @@ declare namespace camera { /** * Capture id. * - * @type { number } + * @type { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ - captureId: number; + captureId: int; /** * Frame count. * - * @type { number } + * @type { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ - frameCount: number; + frameCount: int; } /** @@ -9501,7 +10105,8 @@ declare namespace camera { * @typedef DeferredVideoEnhancementInfo * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface DeferredVideoEnhancementInfo { /** @@ -9511,7 +10116,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ readonly isDeferredVideoEnhancementAvailable: boolean; /** @@ -9521,7 +10127,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ readonly videoId?: string; } @@ -9532,7 +10139,8 @@ declare namespace camera { * @extends CameraOutput * @interface VideoOutput * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface VideoOutput extends CameraOutput { /** @@ -9542,7 +10150,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ start(callback: AsyncCallback): void; @@ -9553,7 +10162,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ start(): Promise; @@ -9562,7 +10172,8 @@ declare namespace camera { * * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ stop(callback: AsyncCallback): void; @@ -9571,7 +10182,8 @@ declare namespace camera { * * @returns { Promise } Promise used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ stop(): Promise; @@ -9589,7 +10201,8 @@ declare namespace camera { * * @returns { boolean } Is video mirror supported. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ isMirrorSupported(): boolean; @@ -9611,7 +10224,8 @@ declare namespace camera { * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ enableMirror(enabled: boolean): void; @@ -9620,42 +10234,46 @@ declare namespace camera { * * @returns { Array } The array of supported frame rate range. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getSupportedFrameRates(): Array /** * Set a frame rate range. * - * @param { number } minFps - Minimum frame rate per second. - * @param { number } maxFps - Maximum frame rate per second. + * @param { int } minFps - Minimum frame rate per second. + * @param { int } maxFps - Maximum frame rate per second. * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400110 - Unresolved conflicts with current configurations. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - setFrameRate(minFps: number, maxFps: number): void + setFrameRate(minFps: int, maxFps: int): void; /** * Get active frame rate range which has been set before. * * @returns { FrameRateRange } The active frame rate range. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getActiveFrameRate(): FrameRateRange; /** * Gets the video rotation angle. * - * @param { number } deviceDegree - The current device rotation degree. + * @param { int } deviceDegree - The current device rotation degree. * @returns { ImageRotation } The video rotation angle. * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - getVideoRotation(deviceDegree: number): ImageRotation; + getVideoRotation(deviceDegree: int): ImageRotation; /** * Confirm if auto deferred video enhancement is supported in the specific device. @@ -9665,7 +10283,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ isAutoDeferredVideoEnhancementSupported(): boolean; @@ -9677,7 +10296,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ isAutoDeferredVideoEnhancementEnabled(): boolean; @@ -9690,7 +10310,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ enableAutoDeferredVideoEnhancement(enabled: boolean): void; @@ -9701,7 +10322,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ getSupportedRotations(): Array; @@ -9712,7 +10334,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ isRotationSupported(): boolean; @@ -9724,7 +10347,8 @@ declare namespace camera { * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ setRotation(rotation: ImageRotation): void; @@ -9735,7 +10359,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ isAutoVideoFrameRateSupported(): boolean; @@ -9748,7 +10373,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ enableAutoVideoFrameRate(enabled: boolean): void; @@ -9760,7 +10386,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'deferredVideoEnhancementInfo', callback: AsyncCallback): void; @@ -9772,7 +10399,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'deferredVideoEnhancementInfo', callback?: AsyncCallback): void; @@ -9782,7 +10410,8 @@ declare namespace camera { * @param { 'frameStart' } type - Event type. * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'frameStart', callback: AsyncCallback): void; @@ -9792,7 +10421,8 @@ declare namespace camera { * @param { 'frameStart' } type - Event type. * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'frameStart', callback?: AsyncCallback): void; @@ -9802,7 +10432,8 @@ declare namespace camera { * @param { 'frameEnd' } type - Event type. * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'frameEnd', callback: AsyncCallback): void; @@ -9812,7 +10443,8 @@ declare namespace camera { * @param { 'frameEnd' } type - Event type. * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'frameEnd', callback?: AsyncCallback): void; @@ -9822,7 +10454,8 @@ declare namespace camera { * @param { 'error' } type - Event type. * @param { ErrorCallback } callback - Callback used to get the video output errors. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -9832,7 +10465,8 @@ declare namespace camera { * @param { 'error' } type - Event type. * @param { ErrorCallback } callback - Callback used to get the video output errors. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -9842,7 +10476,8 @@ declare namespace camera { * @returns { VideoProfile } The current preconfig type. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getActiveProfile(): VideoProfile; @@ -9853,7 +10488,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getSupportedVideoMetaTypes(): Array; @@ -9866,7 +10502,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ attachMetaSurface(surfaceId: string, type: VideoMetaType): void; } @@ -9874,17 +10511,19 @@ declare namespace camera { /** * Video meta type. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ enum VideoMetaType { /** * Video meta type for storing maker info. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ VIDEO_META_MAKER_INFO = 0, } @@ -9892,7 +10531,7 @@ declare namespace camera { /** * Metadata object type. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 @@ -9981,10 +10620,11 @@ declare namespace camera { /** * Enum for light painting tabletype. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ enum LightPaintingType { /** @@ -9992,7 +10632,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ TRAFFIC_TRAILS = 0, @@ -10001,7 +10642,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ STAR_TRAILS = 1, @@ -10010,7 +10652,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ SILKY_WATER = 2, @@ -10019,7 +10662,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ LIGHT_GRAFFITI = 3 } @@ -10036,48 +10680,49 @@ declare namespace camera { /** * X coordinator of top left point. * - * @type { number } + * @type { double } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ - topLeftX: number; + topLeftX: double; /** * Y coordinator of top left point. * - * @type { number } + * @type { double } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ - topLeftY: number; + topLeftY: double; /** * Width of this rectangle. * - * @type { number } + * @type { double } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ - width: number; + width: double; /** * Height of this rectangle. * - * @type { number } + * @type { double } * @syscap SystemCapability.Multimedia.Camera.Core * @since arkts {'1.1':'10','1.2':'20'} * @arkts 1.1&1.2 */ - height: number; + height: double; } /** * Enum for emotion type. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ enum Emotion { /** @@ -10085,7 +10730,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ NEUTRAL = 0, @@ -10094,7 +10740,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ SADNESS = 1, @@ -10103,7 +10750,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ SMILE = 2, @@ -10112,7 +10760,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ SURPRISE = 3 } @@ -10122,7 +10771,8 @@ declare namespace camera { * * @typedef MetadataObject * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface MetadataObject { /** @@ -10131,47 +10781,52 @@ declare namespace camera { * @type { MetadataObjectType } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ readonly type: MetadataObjectType; /** * Metadata object timestamp in milliseconds. * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ - readonly timestamp: number; + readonly timestamp: int; /** * The axis-aligned bounding box of detected metadata object. * * @type { Rect } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ readonly boundingBox: Rect; /** * Metadata object id. * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ - readonly objectId: number; + readonly objectId: int; /** * Confidence for the detected type. * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ - readonly confidence: number; + readonly confidence: int; } /** @@ -10181,7 +10836,8 @@ declare namespace camera { * @extends MetadataObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface MetadataFaceObject extends MetadataObject { /** @@ -10191,7 +10847,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ readonly leftEyeBoundingBox: Rect; @@ -10202,7 +10859,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ readonly rightEyeBoundingBox: Rect; @@ -10213,53 +10871,58 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ readonly emotion: Emotion; /** * Emotion confidence. * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ - readonly emotionConfidence: number; + readonly emotionConfidence: int; /** * Pitch angle for face. * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ - readonly pitchAngle: number; + readonly pitchAngle: int; /** * Yaw angle for face. * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ - readonly yawAngle: number; + readonly yawAngle: int; /** * Roll angle for face. * - * @type { number } + * @type { int } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ - readonly rollAngle: number; + readonly rollAngle: int; } /** @@ -10269,7 +10932,8 @@ declare namespace camera { * @extends MetadataObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface MetadataHumanBodyObject extends MetadataObject { } @@ -10281,7 +10945,8 @@ declare namespace camera { * @extends MetadataObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface MetadataCatFaceObject extends MetadataObject { /** @@ -10291,7 +10956,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ readonly leftEyeBoundingBox: Rect; @@ -10302,7 +10968,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ readonly rightEyeBoundingBox: Rect; } @@ -10314,7 +10981,8 @@ declare namespace camera { * @extends MetadataObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface MetadataCatBodyObject extends MetadataObject { } @@ -10326,7 +10994,8 @@ declare namespace camera { * @extends MetadataObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface MetadataDogFaceObject extends MetadataObject { /** @@ -10336,7 +11005,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ readonly leftEyeBoundingBox: Rect; @@ -10347,7 +11017,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ readonly rightEyeBoundingBox: Rect; } @@ -10359,7 +11030,8 @@ declare namespace camera { * @extends MetadataObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface MetadataDogBodyObject extends MetadataObject { } @@ -10371,7 +11043,8 @@ declare namespace camera { * @extends MetadataObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface MetadataSalientDetectionObject extends MetadataObject { } @@ -10383,7 +11056,8 @@ declare namespace camera { * @typedef MetadataBarcodeObject * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ interface MetadataBarcodeObject extends MetadataObject { } @@ -10394,7 +11068,8 @@ declare namespace camera { * @typedef CameraOcclusionDetectionResult * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface CameraOcclusionDetectionResult { /** @@ -10404,7 +11079,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ readonly isCameraOccluded: boolean; @@ -10415,7 +11091,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ readonly isCameraLensDirty: boolean; } @@ -10426,7 +11103,8 @@ declare namespace camera { * @extends CameraOutput * @interface MetadataOutput * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ interface MetadataOutput extends CameraOutput { /** @@ -10436,7 +11114,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ start(callback: AsyncCallback): void; @@ -10447,7 +11126,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ start(): Promise; @@ -10456,7 +11136,8 @@ declare namespace camera { * * @param { AsyncCallback } callback - Callback used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ stop(callback: AsyncCallback): void; @@ -10465,7 +11146,8 @@ declare namespace camera { * * @returns { Promise } Promise used to return the result. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ stop(): Promise; @@ -10479,7 +11161,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ addMetadataObjectTypes(types: Array): void; @@ -10493,7 +11176,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ removeMetadataObjectTypes(types: Array): void; @@ -10503,7 +11187,8 @@ declare namespace camera { * @param { 'metadataObjectsAvailable' } type - Event type. * @param { AsyncCallback> } callback - Callback used to get the available metadata objects. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'metadataObjectsAvailable', callback: AsyncCallback>): void; @@ -10513,7 +11198,8 @@ declare namespace camera { * @param { 'metadataObjectsAvailable' } type - Event type. * @param { AsyncCallback> } callback - Callback used to get the available metadata objects. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'metadataObjectsAvailable', callback?: AsyncCallback>): void; @@ -10523,7 +11209,8 @@ declare namespace camera { * @param { 'error' } type - Event type. * @param { ErrorCallback } callback - Callback used to get the video output errors. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -10533,7 +11220,8 @@ declare namespace camera { * @param { 'error' } type - Event type. * @param { ErrorCallback } callback - Callback used to get the video output errors. * @syscap SystemCapability.Multimedia.Camera.Core - * @since 10 + * @since arkts {'1.1':'10','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; } @@ -10541,10 +11229,11 @@ declare namespace camera { /** * Enumerates the timelapse recording state. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ enum TimeLapseRecordState { /** @@ -10552,7 +11241,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ IDLE = 0, @@ -10561,7 +11251,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ RECORDING = 1 } @@ -10572,7 +11263,8 @@ declare namespace camera { * @enum { number } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ enum TimeLapsePreviewType { /** @@ -10580,7 +11272,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ DARK = 1, @@ -10589,7 +11282,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ LIGHT = 2 } @@ -10600,7 +11294,8 @@ declare namespace camera { * @typedef TryAEInfo * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface TryAEInfo { /** @@ -10610,7 +11305,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ readonly isTryAEDone: boolean; @@ -10621,7 +11317,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ readonly isTryAEHintNeeded?: boolean; @@ -10632,20 +11329,22 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ readonly previewType?: TimeLapsePreviewType; /** * Timelapse capture interval. * - * @type { ?number } + * @type { ?int } * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - readonly captureInterval?: number; + readonly captureInterval?: int; } /** @@ -10655,7 +11354,8 @@ declare namespace camera { * @interface TimeLapsePhotoSession * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ interface TimeLapsePhotoSession extends Session, Focus, ManualFocus, AutoExposure, ManualExposure, ManualIso, WhiteBalance, Zoom, ColorEffect { /** @@ -10666,7 +11366,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -10678,7 +11379,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; @@ -10690,7 +11392,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'focusStateChange', callback: AsyncCallback): void; @@ -10702,7 +11405,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'focusStateChange', callback?: AsyncCallback): void; @@ -10714,7 +11418,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'isoInfoChange', callback: AsyncCallback): void; @@ -10726,7 +11431,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'isoInfoChange', callback?: AsyncCallback): void; @@ -10738,7 +11444,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'exposureInfoChange', callback: AsyncCallback): void; @@ -10750,7 +11457,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'exposureInfoChange', callback?: AsyncCallback): void; @@ -10762,7 +11470,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'luminationInfoChange', callback: AsyncCallback): void; @@ -10774,7 +11483,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'luminationInfoChange', callback?: AsyncCallback): void; @@ -10786,7 +11496,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ isTryAENeeded(): boolean; @@ -10798,7 +11509,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ startTryAE(): void; @@ -10810,7 +11522,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ stopTryAE(): void; @@ -10822,7 +11535,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'tryAEInfoChange', callback: AsyncCallback): void; @@ -10834,46 +11548,50 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'tryAEInfoChange', callback?: AsyncCallback): void; /** * Gets supported timelapse interval range. * - * @returns { Array } Timelapse interval range. + * @returns { Array } Timelapse interval range. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - getSupportedTimeLapseIntervalRange(): Array; + getSupportedTimeLapseIntervalRange(): Array; /** * Gets the timelapse interval in use. * - * @returns { number } the timelapse interval in use. + * @returns { int } the timelapse interval in use. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - getTimeLapseInterval(): number; + getTimeLapseInterval(): int; /** * Sets a timelapse interval for a camera device. * - * @param { number } interval The timelapse interval. + * @param { int } interval The timelapse interval. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400101 - Parameter missing or parameter type incorrect. * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - setTimeLapseInterval(interval: number): void; + setTimeLapseInterval(interval: int): void; /** * Gets the timelapse recording state in use. @@ -10883,7 +11601,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getTimeLapseRecordState(): TimeLapseRecordState; @@ -10896,7 +11615,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ setTimeLapseRecordState(state: TimeLapseRecordState): void; @@ -10908,7 +11628,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ getTimeLapsePreviewType(): TimeLapsePreviewType; @@ -10921,7 +11642,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ setTimeLapsePreviewType(type: TimeLapsePreviewType): void; } @@ -10929,7 +11651,7 @@ declare namespace camera { /** * Enum for Depth Data Accuracy. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'13','1.2':'20'} @@ -10960,7 +11682,7 @@ declare namespace camera { /** * Enum for Depth Data Quality Level. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi * @since arkts {'1.1':'13','1.2':'20'} @@ -11004,7 +11726,8 @@ declare namespace camera { * @interface DepthProfile * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface DepthProfile { /** @@ -11014,7 +11737,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ readonly format: CameraFormat; @@ -11025,7 +11749,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ readonly dataAccuracy: DepthDataAccuracy; @@ -11036,7 +11761,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ readonly size: Size; } @@ -11047,7 +11773,8 @@ declare namespace camera { * @interface DepthData. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface DepthData { /** @@ -11057,7 +11784,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ readonly format: CameraFormat; @@ -11079,7 +11807,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ readonly qualityLevel: DepthDataQualityLevel; @@ -11090,7 +11819,8 @@ declare namespace camera { * @readonly * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ readonly dataAccuracy: DepthDataAccuracy; @@ -11101,7 +11831,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ release(): Promise; } @@ -11113,7 +11844,8 @@ declare namespace camera { * @interface DepthDataOutput * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ interface DepthDataOutput extends CameraOutput { /** @@ -11125,7 +11857,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ start(): Promise; @@ -11138,7 +11871,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ stop(): Promise; @@ -11150,7 +11884,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'depthDataAvailable', callback: AsyncCallback): void; @@ -11162,7 +11897,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'depthDataAvailable', callback?: AsyncCallback): void; @@ -11174,7 +11910,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ on(type: 'error', callback: ErrorCallback): void; @@ -11186,7 +11923,8 @@ declare namespace camera { * @throws { BusinessError } 202 - Not System Application. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 13 + * @since arkts {'1.1':'13','1.2':'20'} + * @arkts 1.1&1.2 */ off(type: 'error', callback?: ErrorCallback): void; } @@ -11197,7 +11935,8 @@ declare namespace camera { * @interface DepthFusionQuery * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ interface DepthFusionQuery { /** @@ -11208,21 +11947,23 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ isDepthFusionSupported(): boolean; /** * Query the depth fusion threshold. * - * @returns { Array } The depth fusion threshold. + * @returns { Array } The depth fusion threshold. * @throws { BusinessError } 202 - Not System Application. * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ - getDepthFusionThreshold(): Array; + getDepthFusionThreshold(): Array; } /** @@ -11232,7 +11973,8 @@ declare namespace camera { * @interface DepthFusion * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ interface DepthFusion extends DepthFusionQuery { /** @@ -11243,7 +11985,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ isDepthFusionEnabled(): boolean; @@ -11257,7 +12000,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 14 + * @since arkts {'1.1':'14','1.2':'20'} + * @arkts 1.1&1.2 */ enableDepthFusion(enabled: boolean): void; } @@ -11265,10 +12009,11 @@ declare namespace camera { /** * Enum for auxiliary type. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ enum AuxiliaryType { /** @@ -11276,7 +12021,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ CONTRACT_LENS = 0 } @@ -11284,10 +12030,11 @@ declare namespace camera { /** * Enum for auxiliary status. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ enum AuxiliaryStatus { /** @@ -11295,7 +12042,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ LOCKED = 0, @@ -11304,7 +12052,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ ON = 1, @@ -11313,7 +12062,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 18 + * @since arkts {'1.1':'18','1.2':'20'} + * @arkts 1.1&1.2 */ OFF = 2 } @@ -11321,10 +12071,11 @@ declare namespace camera { /** * Enum for color reservation type. * - * @enum { number } + * @enum { int } * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ enum ColorReservationType { /** @@ -11332,7 +12083,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ NONE = 0, @@ -11341,7 +12093,8 @@ declare namespace camera { * * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ PORTRAIT = 1 } @@ -11352,7 +12105,8 @@ declare namespace camera { * @interface ColorReservationQuery * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ interface ColorReservationQuery { /** @@ -11363,7 +12117,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ getSupportedColorReservationTypes(): Array; } @@ -11375,7 +12130,8 @@ declare namespace camera { * @interface ColorReservation * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ interface ColorReservation extends ColorReservationQuery { /** @@ -11386,7 +12142,8 @@ declare namespace camera { * @throws { BusinessError } 7400103 - Session not config, only throw in session usage. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ getColorReservation(): ColorReservationType; @@ -11403,7 +12160,8 @@ declare namespace camera { * @throws { BusinessError } 7400201 - Camera service fatal error. * @syscap SystemCapability.Multimedia.Camera.Core * @systemapi - * @since 15 + * @since arkts {'1.1':'15','1.2':'20'} + * @arkts 1.1&1.2 */ setColorReservation(type: ColorReservationType): void; } diff --git a/api/@ohos.multimedia.cameraPicker.d.ts b/api/@ohos.multimedia.cameraPicker.d.ts index 0aaf06ab634d729c45695e09af149d08f537c456..e77efbbaef395d387edfbe5063c17be49aac7282 100644 --- a/api/@ohos.multimedia.cameraPicker.d.ts +++ b/api/@ohos.multimedia.cameraPicker.d.ts @@ -30,7 +30,8 @@ import type camera from './@ohos.multimedia.camera'; * @namespace cameraPicker * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ declare namespace cameraPicker { @@ -45,7 +46,8 @@ declare namespace cameraPicker { * * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ class PickerProfile { /** @@ -61,7 +63,8 @@ declare namespace cameraPicker { * @type { camera.CameraPosition } * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ cameraPosition: camera.CameraPosition; @@ -78,7 +81,8 @@ declare namespace cameraPicker { * @type { ?string } * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ saveUri?: string; @@ -92,12 +96,13 @@ declare namespace cameraPicker { /** * The max duration of the video. * - * @type { ?number } + * @type { ?int } * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - videoDuration?: number; + videoDuration?: int; } /** @@ -113,7 +118,8 @@ declare namespace cameraPicker { * @enum { string } * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ enum PickerMediaType { /** @@ -127,7 +133,8 @@ declare namespace cameraPicker { * * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ PHOTO = 'photo', @@ -142,7 +149,8 @@ declare namespace cameraPicker { * * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ VIDEO = 'video' } @@ -158,7 +166,8 @@ declare namespace cameraPicker { * * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ class PickerResult { /** @@ -171,12 +180,13 @@ declare namespace cameraPicker { /** * The result code. * - * @type { number } + * @type { int } * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ - resultCode: number; + resultCode: int; /** * The result saved uri. @@ -191,7 +201,8 @@ declare namespace cameraPicker { * @type { string } * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ resultUri: string; @@ -208,7 +219,8 @@ declare namespace cameraPicker { * @type { PickerMediaType } * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ mediaType: PickerMediaType; } @@ -232,7 +244,8 @@ declare namespace cameraPicker { * @returns { Promise } pick result. * @syscap SystemCapability.Multimedia.Camera.Core * @atomicservice - * @since 12 + * @since arkts {'1.1':'12','1.2':'20'} + * @arkts 1.1&1.2 */ function pick(context: Context, mediaTypes: Array, pickerProfile: PickerProfile): Promise; }