public static interface AbilityForm.OnAcquiredCallback
AbilityForm instance created by the supplier is
obtained or destroyed on the client.
This interface provides callback methods that are called after an asynchronous request sent by calling
AbilitySlice#acquireAbilityFormAsync(Intent, OnAcquiredCallback) on the client. The callback methods are
used to notify the client that the AbilityForm request has been processed.
SystemCapability.Aafwk#ABILITY| 限定符和类型 | 方法 | 说明 |
|---|---|---|
void |
onAcquired(AbilityForm abilityForm) |
Called when an
AbilityForm instance created by the supplier is obtained on the client. |
void |
onDestroyed(AbilityForm abilityForm) |
Called when an
AbilityForm has been destroyed. |
void onAcquired(AbilityForm abilityForm)
AbilityForm instance created by the supplier is obtained on the client.
This method is called back when:
AbilitySlice#acquireAbilityFormAsync(Intent, OnAcquiredCallback) has been processed.abilityForm - Indicates the AbilityForm instance created by the supplier by calling
Ability#onCreateForm().void onDestroyed(AbilityForm abilityForm)
AbilityForm has been destroyed.
You will be notified through this callback method when an AbilityForm is destroyed. You can
also use this method to reconnect to the AbilityForm or clear resources.
abilityForm - Indicates the destroyed AbilityForm.