Skip to main content

OH_AbilityRuntime_ApplicationContextNotifyPageChanged

Function OH_AbilityRuntime_ApplicationContextNotifyPageChanged 

Source
pub unsafe extern "C" fn OH_AbilityRuntime_ApplicationContextNotifyPageChanged(
    targetPageName: *const c_char,
    targetPageNameLength: i32,
    windowId: i32,
) -> AbilityRuntimeResult
Available on crate feature api-23 only.
Expand description

Notify page changed.

§Arguments

  • targetPageName - The target page name.

  • targetPageNameLength - The target page name length.

  • windowId - The window identifier associated with the target page.

§Returns

  • Returns [ABILITY_RUNTIME_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID] if targetPageName is null or windowId is invalid. Returns [ABILITY_RUNTIME_ERROR_CODE_INTERNAL] if internal error occurs, such as failed to access dependency module.

Available since API-level: 23