1 В избранное 0 Ответвления 0

OSCHINA-MIRROR/openharmony-applications_app_samples

Присоединиться к Gitlife
Откройте для себя и примите участие в публичных проектах с открытым исходным кодом с участием более 10 миллионов разработчиков. Приватные репозитории также полностью бесплатны :)
Присоединиться бесплатно
Это зеркальный репозиторий, синхронизируется ежедневно с исходного репозитория.
Клонировать/Скачать
Внести вклад в разработку кода
Синхронизировать код
Отмена
Подсказка: Поскольку Git не поддерживает пустые директории, создание директории приведёт к созданию пустого файла .keep.
Loading...
README.md

Mission Manager

Introduction

This sample calls APIs related to the mission manager to lock, unlock, and clear missions, and switch them to the foreground.

Concepts

Mission manager: You can lock, unlock, and clear missions, and switch them to the foreground.

Required Permissions

ohos.permission.MANAGE_MISSIONS

Usage

  1. 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.

  2. Swipe left on the mission list and touch Lock to lock a mission.

  3. If the mission is locked, touch Unlock to unlock it.

  4. Touch Delete to delete a mission.

  5. Touch Move to switch a mission to the foreground.

Constraints

  1. This sample can only be run on standard-system devices.

  2. 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.

  3. DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) must be used.

  4. 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 )

Вы можете оставить комментарий после Вход в систему

1
https://gitlife.ru/oschina-mirror/openharmony-applications_app_samples.git
git@gitlife.ru:oschina-mirror/openharmony-applications_app_samples.git
oschina-mirror
openharmony-applications_app_samples
openharmony-applications_app_samples
master-v