OH_ArkUI_CreateAsymmetricTransitionEffect

Function OH_ArkUI_CreateAsymmetricTransitionEffect 

Source
pub unsafe extern "C" fn OH_ArkUI_CreateAsymmetricTransitionEffect(
    appear: *mut ArkUI_TransitionEffect,
    disappear: *mut ArkUI_TransitionEffect,
) -> *mut ArkUI_TransitionEffect
Available on crate feature api-12 only.
Expand description

Creates an asymmetric transition effect.

Note: If the asymmetric function is not used for TransitionEffect, the transition effect takes effect for both appearance and disappearance of the component.

§Arguments

  • appear - Indicates the transition effect for appearance.

  • disappear - Indicates the transition effect for disappearance.

§Returns

  • Returns the asymmetric transition effect. Returns NULL if a parameter error occurs.

Available since API-level: 12