This sample calls APIs related to the mission manager to lock, unlock, and clear missions, and switch them to the foreground.
Mission manager: You can lock, unlock, and clear missions, and switch them to the foreground.
ohos.permission.MANAGE_MISSIONS
Pull down the sample app to obtain the mission information, including the bundle name, running status, locking status, mission snapshot, and whether the mission supports migration. Information about a maximum of 10 missions can be obtained.
Swipe left on the mission list and touch Lock to lock a mission.
If the mission is locked, touch Unlock to unlock it.
Touch Delete to delete a mission.
Touch Move to switch a mission to the foreground.
This sample can only be run on standard-system devices.
This sample supports only the SDK of API version 9 and uses the system API @ohos.application.missionManager. Therefore, you must manually switch to the Full SDK for successful compilation. For details about the operation, see Guide to Switching to Full SDK.
DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) must be used.
The permission ohos.permission.MANAGE_MISSIONS is at the system_core level. Therefore, you must manually configure the signature for the corresponding permission level. For details about the permission level, see Permission List. For details about the configuration operation, see Having Your App Automatically Signed.
Вы можете оставить комментарий после Вход в систему
Неприемлемый контент может быть отображен здесь и не будет показан на странице. Вы можете проверить и изменить его с помощью соответствующей функции редактирования.
Если вы подтверждаете, что содержание не содержит непристойной лексики/перенаправления на рекламу/насилия/вульгарной порнографии/нарушений/пиратства/ложного/незначительного или незаконного контента, связанного с национальными законами и предписаниями, вы можете нажать «Отправить» для подачи апелляции, и мы обработаем ее как можно скорее.
Комментарий ( 0 )