pub unsafe extern "C" fn OH_ArkUI_CreateOpacityTransitionEffect(
opacity: f32,
) -> *mut ArkUI_TransitionEffectAvailable on crate feature
api-12 only.Expand description
Creates an opacity object for component transition.
Note: If the value specified is less than 0, the value 0 is used. If the value specified is greater than 1, the value 1 is used.
§Arguments
opacity- Indicates the opacity. Value range: [0, 1].
§Returns
- Returns the created opacity object for component transition.
Available since API-level: 12