An OHOS application is defined using OHOS's core component Ability. The Ability has three types of templates, including Page, Service, and Data.
| 接口 | 说明 |
|---|---|
| AbilityForm.OnAcquiredCallback |
Provides callback methods that are invoked when an
AbilityForm instance created by the supplier is
obtained or destroyed on the client. |
| AbilityLifecycleCallbacks |
Provides callbacks used to listen for all lifecycle changes of abilities in an application.
|
| AbilitySlice.FormCallback |
Provides callbacks that will be invoked when a
Form instance is obtained or when the Form
provider is uninstalled. |
| IAbilityConnection |
Provides callback methods that are called when a remote ability using the Service template is connected or
disconnected.
|
| IAbilityContinuation |
Enables an
Ability to implement migration in a distributed system. |
| IAbilityStartCallback |
Interface for Ability start callback.
|
| IDataAbilityObserver |
Registers an observer for monitoring specified data.
|
| ILifecycle |
Generates a
Lifecycle object. |
| ILifecycleObserver |
Identifies a class as a
ILifecycleObserver. |
| LifecycleStateObserver |
Observes specific lifecycle events and responds to lifecycle changes.
|
| PipeFileWriter<T> |
Provides methods that can be called by background threads to write data into a pipe.
|
| 类 | 说明 |
|---|---|
| Ability |
An ability is an abstraction of functionalities that an OHOS application can provide.
|
| Ability.LayoutParamsHelper |
Helps you use an
Intent to set the layout parameters of the application startup window. |
| Ability.WindowAttributeHelper |
Helps you use an
Intent to set window attributes for the current application. |
| AbilityForm |
Displays brief information about another
Ability. |
| AbilityLifecycleExecutor |
A utility class used to process lifecycle states of an
Ability. |
| AbilityMissionInfo |
This class is contains ability mission info for user to manage ability.
|
| AbilityPackage |
A base class used for user to initialize each hap.
|
| AbilitySlice |
As the fundamental unit of the
Ability using the Page template, AbilitySlice provides an ability with
a carrier for service logic and UI display. |
| AbilitySliceAnimator |
Customizes the transition animation between
AbilitySlice instances. |
| AbilitySliceLifecycleExecutor |
A utility class used to process lifecycle states of an
AbilitySlice. |
| AbilityWindowConfiguration |
Defines the window display modes of a Page ability, for example, the multi-window modes.
|
| DataAbilityHelper |
Helps applications to access data.
|
| DataAbilityOperation |
Performs an operation on the database.
|
| DataAbilityOperation.Builder |
Creates a
DataAbilityOperation. |
| DataAbilityResult |
Saves the data operation result.
|
| DataUriUtils |
A utility class used for handling
Uri objects that use the dataability scheme. |
| DeviceConfigInfo |
Provides information about an application's device configuration requirements that you can obtain by calling
IAbilityManager.getDeviceConfigInfo(). |
| Form |
Represents the basic data structure of a form.
|
| FormBindingData |
Represents the data structure of a JS form.
|
| IntentAbility |
A base class for abilities using the Service template that is used to process
background tasks in worker threads to avoid running time-consuming tasks in
the main thread, ensuring the application responsiveness.
|
| Lifecycle |
Provides a class for you to observe the lifecycle of an
Ability or AbilitySlice. |
| LifecycleObserver |
Observes and responds to lifecycle changes.
|
| LocalRemoteObject |
This is LocalRemoteObject abstract used to start Local service.
|
| MemoryInfo |
Encapsulates memory usage information for a running application.
|
| OnClickListener |
Provides callback methods that are registered with the
AbilityForm supplier for listening for click events. |
| PathMatcher |
Stores and matches database and file paths in an ability using the Data template.
|
| ProcessErrorInfo |
Process error state info.
|
| ProviderFormInfo |
Provides methods for the
Form provider to set form information such as the content to be displayed
on the remote form and the trigger events. |
| RunningProcessInfo |
Encapsulates process information for a running application.
|
| SystemMemoryInfo |
Provides system memory information that you can obtain by calling
IAbilityManager.getSystemMemoryInfo(ohos.aafwk.ability.SystemMemoryInfo). |
| ViewListener |
A base class used to provide callback methods that are registered with the
AbilityForm supplier to listen
for click or touch events. |
| ViewsStatus |
Obtains the view status of an
AbilityForm client from the supplier. |
| 枚举 | 说明 |
|---|---|
| AbilityLifecycleExecutor.LifecycleState |
Enumerates all lifecycle states of an ability.
|
| AbilitySliceLifecycleExecutor.LifecycleState |
Enumerates all lifecycle states of an ability slice.
|
| ContinuationState |
Enumerates the migration states of an
Ability that has implemented IAbilityContinuation
and is in a reversible migration process that allows the ability to be migrated back. |
| FormException.FormError |
FormError indicates the form error code and error message.
|
| FormState |
Enumerates the states of a form.
|
| Lifecycle.Event |
Indicates a lifecycle event.
|
| 异常错误 | 说明 |
|---|---|
| AbilitySliceRuntimeException |
Describes an exception thrown when a runtime exception occurs in an
AbilitySlice. |
| DataAbilityDeadException |
Describes a process exit exception.
|
| DataAbilityRemoteException |
Describes a remote process exit exception.
|
| FormException |
Describes an exception thrown when an error occurs during
Form operation. |
| OperationExecuteException |
Describes an exception thrown when an operation execution exception occurs in an ability using the Data template.
|
| ProfileMissingConfigException |
Describes the exception thrown when the profile missing a necessary configuration.
|