Intelligent Assistant
Chat with our virtual assistant to get answers promptly.
The initial APIs of this module are supported since API version 7. Newly added APIs will be marked with a superscript to indicate their earliest API version.
type PixelMap = PixelMap
Represents an image pixel map for reading or writing image data and accessing image information.
Atomic service API: This API can be used in atomic services since API version 11.
System capability: SystemCapability.Multimedia.Image.Core
| Type | Description |
|---|---|
| PixelMap | Image pixel map class for reading or writing image data and accessing image information. |
Provides AI image analyzer configuration.
Atomic service API: This API can be used in atomic services since API version 12.
System capability: SystemCapability.ArkUI.ArkUI.Full
| Name | Type | Read-Only | Optional | Description |
|---|---|---|---|---|
| types | ImageAnalyzerType[] | No | No | AI image analysis types. |
Defines the AI image analysis type. If it is not set, subject recognition and text recognition are enabled by default.
Atomic service API: This API can be used in atomic services since API version 12.
System capability: SystemCapability.ArkUI.ArkUI.Full
| Name | Value | Description |
|---|---|---|
| SUBJECT | 0 | Subject recognition. |
| TEXT | 1 | Text recognition. |
| OBJECT_LOOKUP | 2 | Object lookup. |
Provides the AI image analysis options.
Atomic service API: This API can be used in atomic services since API version 12.
System capability: SystemCapability.ArkUI.ArkUI.Full
| Name | Type | Read-Only | Optional | Description |
|---|---|---|---|---|
| types | ImageAnalyzerType[] | No | Yes | AI image analysis types. |
| aiController | ImageAnalyzerController | No | Yes | AI image analysis controller. |
The types parameter of this API has a higher priority than that of ImageAnalyzerConfig. This means that, if both parameters are set, the value set by this API takes precedence.
This API depends on device capabilities and must be used together with the enableAnalyzer API of the corresponding component (for example, the Image component).
Implements an AI image analysis controller, which provides control for image analysis features when bound to supported components.
Atomic service API: This API can be used in atomic services since API version 12.
System capability: SystemCapability.ArkUI.ArkUI.Full
constructor()
A constructor used to create an ImageAnalyzerController instance.
Atomic service API: This API can be used in atomic services since API version 12.
System capability: SystemCapability.ArkUI.ArkUI.Full
getImageAnalyzerSupportTypes(): ImageAnalyzerType[]
Obtains the analysis types supported by the corresponding component.
Atomic service API: This API can be used in atomic services since API version 12.
System capability: SystemCapability.ArkUI.ArkUI.Full
Return value
| Type | Description |
|---|---|
| ImageAnalyzerType[] | Analysis type supported by the corresponding component. |
Defines the content transition effect.
Atomic service API: This API can be used in atomic services since API version 21.
System capability: SystemCapability.ArkUI.ArkUI.Full
| Name | Type | Read-Only | Optional | Description |
|---|---|---|---|---|
| IDENTITY | ContentTransitionEffect | Yes | No | Applies no transition effect during content switching. |
| OPACITY | ContentTransitionEffect | Yes | No | Applies a fade-in/fade-out transition animation during content switching. |