已合并
application_context文件sdk与资料一致性修改 #5110
application_context文件sdk与资料一致性修改 #5110
已合并
Luobniz21创建于 5月8日
1 个文件变更+28-25
MAbilityKit/ability_runtime/application_context.h+28-25
@@ -244,7 +244,7 @@ AbilityRuntime_ErrorCode OH_AbilityRuntime_ApplicationContextGetResourceDir(cons
244/**244/**
245 * @brief Starts the UIAbility of the current application.245 * @brief Starts the UIAbility of the current application.
246 *246 *
247- * @permission {@code ohos.permission.NDK_START_SELF_UI_ABILITY}247+ * @permission ohos.permission.NDK_START_SELF_UI_ABILITY
248 * @param want Pointer to the Want information required for starting the UIAbility.248 * @param want Pointer to the Want information required for starting the UIAbility.
249 * @return **ABILITY_RUNTIME_ERROR_CODE_NO_ERROR**: The operation is successful.249 * @return **ABILITY_RUNTIME_ERROR_CODE_NO_ERROR**: The operation is successful.
250 * **ABILITY_RUNTIME_ERROR_CODE_PERMISSION_DENIED**: Permission verification for the caller fails.250 * **ABILITY_RUNTIME_ERROR_CODE_PERMISSION_DENIED**: Permission verification for the caller fails.
@@ -272,35 +272,38 @@ AbilityRuntime_ErrorCode OH_AbilityRuntime_StartSelfUIAbility(AbilityBase_Want *
272/**272/**
273 * @brief Starts the UIAbility of the current application using **StartOptions**.273 * @brief Starts the UIAbility of the current application using **StartOptions**.
274 *274 *
275- * @permission {@code ohos.permission.NDK_START_SELF_UI_ABILITY}275+ * @permission ohos.permission.NDK_START_SELF_UI_ABILITY
276 * @param want Pointer to the Want information required for starting the UIAbility.276 * @param want Pointer to the Want information required for starting the UIAbility.
277 * @param options Pointer to **StartOptions** required for starting the UIAbility.277 * @param options Pointer to **StartOptions** required for starting the UIAbility.
278 * If the value of {@link startVisibility}278 * If the value of {@link startVisibility}
279 * is not null, ensure that the current application has been added to the status bar.279 * is not null, ensure that the current application has been added to the status bar.
280 * Otherwise, the {@link ABILITY_RUNTIME_ERROR_VISIBILITY_SETTING_DISABLED} error code is returned.280 * Otherwise, the {@link ABILITY_RUNTIME_ERROR_VISIBILITY_SETTING_DISABLED} error code is returned.
281- * @return **ABILITY_RUNTIME_ERROR_CODE_NO_ERROR**: The operation is successful.281+ * @return <ul><li>**ABILITY_RUNTIME_ERROR_CODE_NO_ERROR**: The operation is successful.</li>
282- * **ABILITY_RUNTIME_ERROR_CODE_PERMISSION_DENIED**: Permission verification for the caller fails.282+ * <li>**ABILITY_RUNTIME_ERROR_CODE_PERMISSION_DENIED**: Permission verification for the caller fails.</li>
283- * **ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID**: Parameter verification for the caller fails.283+ * <li>**ABILITY_RUNTIME_ERROR_CODE_PARAM_INVALID**: Parameter verification for the caller fails.</li>
284- * **ABILITY_RUNTIME_ERROR_CODE_NOT_SUPPORTED**: The device type is not supported.284+ * <li>**ABILITY_RUNTIME_ERROR_CODE_NOT_SUPPORTED**: The device type is not supported.</li>
285- * **ABILITY_RUNTIME_ERROR_CODE_NO_SUCH_ABILITY**: The specified ability name does not exist.285+ * <li>**ABILITY_RUNTIME_ERROR_CODE_NO_SUCH_ABILITY**: The specified ability name does not exist.</li>
286- * **ABILITY_RUNTIME_ERROR_CODE_INCORRECT_ABILITY_TYPE**: The ability type is incorrect.286+ * <li>**ABILITY_RUNTIME_ERROR_CODE_INCORRECT_ABILITY_TYPE**: The ability type is incorrect.</li>
287- * **ABILITY_RUNTIME_ERROR_CODE_CROWDTEST_EXPIRED**: The crowdtesting application expires.287+ * <li>**ABILITY_RUNTIME_ERROR_CODE_CROWDTEST_EXPIRED**: The crowdtesting application expires.</li>
288- * **ABILITY_RUNTIME_ERROR_CODE_WUKONG_MODE**: The ability is started or stopped in Wukong mode.288+ * <li>**ABILITY_RUNTIME_ERROR_CODE_WUKONG_MODE**: The ability is started or stopped in Wukong mode.</li>
289- * **ABILITY_RUNTIME_ERROR_CODE_CONTROLLED**: The application is under control.289+ * <li>**ABILITY_RUNTIME_ERROR_CODE_CONTROLLED**: The application is under control.</li>
290- * **ABILITY_RUNTIME_ERROR_CODE_EDM_CONTROLLED**: The application is under control by EDM.290+ * <li>**ABILITY_RUNTIME_ERROR_CODE_EDM_CONTROLLED**: The application is under control by EDM.</li>
291- * **ABILITY_RUNTIME_ERROR_CODE_CROSS_APP**: Redirecting to third-party applications291+ * <li>**ABILITY_RUNTIME_ERROR_CODE_CROSS_APP**: Redirecting to third-party applications
292- * is not allowed in API versions later than 11.292+ * is not allowed in API versions later than 11.</li>
293- * **ABILITY_RUNTIME_ERROR_CODE_INTERNAL**: An internal error occurs.293+ * <li>**ABILITY_RUNTIME_ERROR_CODE_INTERNAL**: An internal error occurs.</li>
294- * **ABILITY_RUNTIME_ERROR_CODE_NOT_TOP_ABILITY**: The application is not a top one.294+ * <li>**ABILITY_RUNTIME_ERROR_CODE_NOT_TOP_ABILITY**: The application is not a top one.</li>
295- * **ABILITY_RUNTIME_ERROR_VISIBILITY_SETTING_DISABLED**:295+ * <li>**ABILITY_RUNTIME_ERROR_VISIBILITY_SETTING_DISABLED**:
296- * Setting the window visibility during startup is not allowed.296+ * Setting the window visibility during startup is not allowed.</li>
297- * **ABILITY_RUNTIME_ERROR_CODE_MULTI_APP_NOT_SUPPORTED**:297+ * <li>**ABILITY_RUNTIME_ERROR_CODE_MULTI_APP_NOT_SUPPORTED**:
298- * The application does not support clone or multi-instance mode.298+ * The application does not support clone or multi-instance mode.</li>
299- * **ABILITY_RUNTIME_ERROR_CODE_INVALID_APP_INSTANCE_KEY**: The multi-instance key is invalid.299+ * <li>**ABILITY_RUNTIME_ERROR_CODE_INVALID_APP_INSTANCE_KEY**: The multi-instance key is invalid.</li>
300- * **ABILITY_RUNTIME_ERROR_CODE_UPPER_LIMIT_REACHED**: The number of instances has reached the upper limit.300+ * <li>**ABILITY_RUNTIME_ERROR_CODE_UPPER_LIMIT_REACHED**:
301- * **ABILITY_RUNTIME_ERROR_MULTI_INSTANCE_NOT_SUPPORTED**: The application does not support multi-instance mode.301+ * The number of instances has reached the upper limit.</li>
302- * **ABILITY_RUNTIME_ERROR_CODE_APP_INSTANCE_KEY_NOT_SUPPORTED**: Setting **APP_INSTANCE_KEY** is not supported.302+ * <li>**ABILITY_RUNTIME_ERROR_MULTI_INSTANCE_NOT_SUPPORTED**:
303- * For details, see **AbilityRuntime_ErrorCode**.303+ * The application does not support multi-instance mode.</li>
304+ * <li>**ABILITY_RUNTIME_ERROR_CODE_APP_INSTANCE_KEY_NOT_SUPPORTED**:
305+ * Setting **APP_INSTANCE_KEY** is not supported.
306+ * For details, see **AbilityRuntime_ErrorCode**.</li></ul>
304 * @since 17307 * @since 17
305 */308 */
306AbilityRuntime_ErrorCode OH_AbilityRuntime_StartSelfUIAbilityWithStartOptions(AbilityBase_Want *want,309AbilityRuntime_ErrorCode OH_AbilityRuntime_StartSelfUIAbilityWithStartOptions(AbilityBase_Want *want,