Hongmeng native application/meta-service development-Stage model capability interface (6)

Insert image description here

@ohos.app.ability.contextConstant (ContextConstant)

1. Description

ContextConstant provides Context-related enumerations, which currently only include enumerations for data encryption levels. The first batch of interfaces of this module are supported starting from API version 9. For new interfaces in subsequent versions, the initial version of the interface is individually marked with a superscript. This module interface can only be used under the Stage model.

2. Import module

.import contextConstant from ‘@ohos.app.ability.contextConstant’;

三、ContextConstant.AreaMode

Obtained through ContextConstant.AreaMode when used. System capabilities: The system capabilities corresponding to the following items are SystemCapability.Ability.AbilityRuntime.Core
Hongmeng native application/meta-service development-Stage model capability interface (6)-Hongmeng Developer Community

end

Here is a "Hongmeng (HarmonyOS) Development Learning Guide", hoping to provide some help to those who want to learn Hongmeng but have no direction. (Due to the excessive content of the document, in order to avoid affecting everyone’s reading experience, only part of the content is shown in screenshots. There is a free way to obtain the detailed full version at the end of the article!)

"HarmonyOS Development Study Guide"

Chapter 1 Quick Start

1. Development preparation

2. Build the first ArkTS application (Stage model)

3. Build the first ArkTS application (FA model)

4. Build the first JS application (FA model)

5、…

picture

Chapter 2 Development Basics

1. Basic knowledge of application packages

2. Application configuration file (Stage model)

3. Application configuration file overview (FA model)

4、…

picture

Chapter 3 Resource Classification and Access

1. Resource classification and access

2. Create resource directories and resource files

3. Resource access

4、…

picture

Chapter 4 Learning ArkTs Language

1. First introduction to ArkTS language

2. Basic grammar

3. Status management

4. Other status management

5. Rendering control

6、…

picture

Chapter 5 UI Development

1. Overview of Ark Development Framework (ArkUI)

2. Based on ArkTS declarative development paradigm

3. Web-like development paradigm compatible with JS

4…

picture

Chapter 6 Web Development

1. Overview of Web Components

2. Load the page using web components

3. Set basic properties and events

4. Use front-end page JavaScript in your application

5. Overview of ArkTS language basic class library

6. Concurrency

7…

picture

11. Network and connections

12. Telephone service

13.Data management

14.File management

15.Background task management

16.Device management

17…

picture

Chapter 7 Application Model

1. Overview of application model

2.Stage model development guidance

3.FA model development guidance

4…

picture

Scan the QR code below to receive the "HarmonyOS Development Study Guide" for free

Guess you like

Origin blog.csdn.net/Android23333/article/details/135401575