45c975a5创建于 2023年6月9日历史提交
文件最后提交记录最后更新时间
Issue: #I6DWJY Description: BasicFeature模块,目录结构迁移 Sig: SIG_Sample Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: hongshengquan <hongshengquan3@huawei.com> 3 年前
修复失效链接、删除package.json Signed-off-by: zwx1126739 <zhanghong121@huawei.com> 2 年前
Preferences ohpm迁移 Signed-off-by: yeyedeshen <yangxin181@huawei.com> 3 年前
Issue: #I6DWJY Description: BasicFeature模块,目录结构迁移 Sig: SIG_Sample Feature or Bugfix: Bugfix Binary Source: No Signed-off-by: hongshengquan <hongshengquan3@huawei.com> 3 年前
!2255 【0230】code目录下代码适配 part.1+2+3 * code目录下代码适配 part.3 * code目录下代码适配 part.2 * code目录下代码适配 part.1 Signed-off-by: sunwenxu <sunwenxu1@huawei.com> 3 年前
revert sdk version 10->9 Signed-off-by: sunwenxu <sunwenxu1@huawei.com> 3 年前
整改readme链接 Signed-off-by: zwx1126739 <zhanghong121@huawei.com> 2 年前
revert sdk version 10->9 Signed-off-by: sunwenxu <sunwenxu1@huawei.com> 3 年前
code目录下代码适配 part.4 code/SystemFeature/Media/Screenshot code/SystemFeature/ApplicationModels/Launcher code/SuperFeature/MultiDeviceAppDev/Weather code/SuperFeature/MultiDeviceAppDev/AppMarket code/SuperFeature/DistributedAppDev/DistributedDataGobang code/Solutions/Game/Game2048 code/LaunguageBaseClassLibrary/UtilUrlString code/LaunguageBaseClassLibrary/UtilBase64Codec code/BasicFeature/Telephony/SimManager code/BasicFeature/Media/QRCodeScan code/SystemFeature/DataManagement/CrossAppDataShare Signed-off-by: sunwenxu <sunwenxu1@huawei.com> 3 年前
Preferences ohpm迁移 Signed-off-by: yeyedeshen <yangxin181@huawei.com> 3 年前
Preferences ohpm迁移 Signed-off-by: yeyedeshen <yangxin181@huawei.com> 3 年前
Preferences ohpm迁移 Signed-off-by: yeyedeshen <yangxin181@huawei.com> 3 年前
Preferences测试用例提交 Signed-off-by: yeyedeshen <yangxin181@huawei.com> 3 年前
README.md

Preferences

Introduction

This sample shows how to alternate between themes using preferences. The display effect is as follows:

Concepts

Preferences: provide capabilities for processing data in the form of key-value (KV) pairs and support lightweight data persistence, modification, and query. In KV pairs, the keys are of the string type, and the values can be of the number, string, Boolean, Array<number>, Array<string>, or Array<boolean> type.

Required Permissions

N/A.

Usage

  1. Touch the switch button on the upper right corner of the title bar, and select the target theme from the screen displayed.

  2. Exit the app and then access it again. The theme before the last exit is displayed.

Constraints

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

  • This sample is based on the stage model, which is supported from API version 9.

  • This sample requires DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) to compile and run.