From e888358ab76545c1b794dbe1922923bba7f7237c Mon Sep 17 00:00:00 2001 From: zwx1126739 Date: Thu, 1 Jun 2023 16:38:18 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dchangelog=E5=92=8Creadme?= =?UTF-8?q?=E5=A4=B1=E6=95=88=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zwx1126739 --- README.md | 195 +++++------------- README_zh.md | 7 +- SampleReadTemplate.md | 16 +- changelog.md | 154 +++++++------- .../ApplicationModels/StageModel/README.md | 89 +------- .../ApplicationModels/StageModel/README_zh.md | 93 +-------- .../Widget/ArkTSCard/Calculator/README_zh.md | 2 +- .../Widget/ArkTSCard/CanvasGame/README_zh.md | 2 +- .../Widget/FormExtAbility/README.md | 2 +- .../ApplicationModels/Launcher/README.md | 2 +- .../ApplicationModels/Launcher/README_zh.md | 2 +- .../MissionManager/README.md | 2 +- .../StorageStatistic/README.md | 2 +- .../WindowExtAbility/README.md | 3 +- 14 files changed, 148 insertions(+), 423 deletions(-) diff --git a/README.md b/README.md index a9023df7f..c65a8fc54 100755 --- a/README.md +++ b/README.md @@ -12,174 +12,81 @@ We provide a series of app samples to help you quickly get familiar with the API ## Content - Basic - - [`Container`:ArrayList(ArkTS)(API8)](Basic/Container) - - [`Screenshot`:Screenshot (ArkTS)(API9)](Basic/Screenshot) + - [`Screenshot`:Screenshot (ArkTS)(API9)](code/SystemFeature/Media/Screenshot) - AppSample - - [`Chat`:Chat Sample(ArkTS)(API8)](AppSample/Chat) - - [`Shopping`:Shopping Sample(ArkTS)(API8)](AppSample/Shopping) + - [`Chat`:Chat Sample(ArkTS)(API9)](code/Solutions/IM/Chat) - Account - - [`AppAccountManager`:App Account Manager (ArkTS)(API8)](Account/AppAccountManager) - - [`DistributeAccount`:Distributed Account(ArkTS)(API8)](Account/DistributeAccount) + - [`AppAccountManager`:App Account Manager (ArkTS)(API9)](code/BasicFeature/Security/AppAccountManager) - Communication - - [`RPC`:RPC Connection (ArkTS)(API8)](Communication/RPC) - - [`Wlan`:WLAN (ArkTS)(API8)](Communication/Wlan) + - [`RPC`:RPC Connection (ArkTS)(API9)](code/BasicFeature/Connectivity/RPC) + - [`Wlan`:WLAN (ArkTS)(API9)](code/SystemFeature/Connectivity/Wlan) - ability - - [`DMS`:Distributed Demo(ArkTS)(API8)](ability/DMS) - - [`JsDistributedMusicPlayer`:Distributed Music Player(JS)(API7)](ability/JsDistributedMusicPlayer) - - [`DataAbility`:Data Ability(ArkTS)(API8)](ability/DataAbility) - - [`ServiceAbility`:Service Ability(ArkTS)(API8)](ability/ServiceAbility) - - [`StageCallAbility`:Stage Call Ability(ArkTS)(API9)](ability/StageCallAbility) - - [`FormAbility`:Form Ability (JS)(API8)](ability/FormAbility) - - [`FormExtAbility`:Stage Form(ArkTS)(API9)](ability/FormExtAbility) - - [`FormLauncher`:Form Launcher(ArkTS)(API8)](ability/FormLauncher) - - [`ServiceExtAbility`:StageExtAbility Creation(ArkTS)(API9)](ability/ServiceExtAbility) - - [`DistributedGraffiti`:Distributed Graffiti(ArkTS)(API8)](ability/DistributedGraffiti) - - [`MissionManager`:System Mission Manager(ArkTS)(API9)](ability/MissionManager) + - [`JsDistributedMusicPlayer`:Distributed Music Player(JS)(API10)](code/SuperFeature/DistributedAppDev/JsDistributedMusicPlayer) + - [`FormExtAbility`:Stage Form(ArkTS)(API9)](code/SuperFeature/Widget/FormExtAbility) + - [`MissionManager`:System Mission Manager(ArkTS)(API9)](code/SystemFeature/ApplicationModels/MissionManager) - common - - [`AirQuality`:Air Quality(JS)(API8)](common/AirQuality) - - [`Clock`:Clock(JS)(API8)](common/Clock) - - [`DistributeCalc`:Distributed Calculator(JS)(API7)](common/DistributeCalc) - - [`ECG`:ECG(JS)(API8)](common/ECG) - - [`Notification`:Botification (ArkTS)(API8)](common/Notification) - - [`ResourceManager`:Resource Manager(ArkTS)(API8)](common/ResourceManager) - - [`Runninglock`:Runninglock(ArkTS)(API8)](common/Runninglock) - - [`Flashlight`:Flashlight(JS)(API8)](common/Flashlight) + - [`Clock`:Clock(JS)(API10)](code/Solutions/Tools/JsClock) + - [`DistributeCalc`:Distributed Calculator(JS)(API10)](code/SuperFeature/DistributedAppDev/DistributeCalc) + - [`ResourceManager`:Resource Manager(ArkTS)(API9)](code/BasicFeature/Internationalnation/ResourceManager) - [`JsHelloWorld`:'Hello World'(JS)(API8)](common/JsHelloWorld) - - [`PowerManager`:System Power Manager(ArkTS)(API8)](common/PowerManager) - - [`International`:i18n(ArkTS)(API8)](common/International) + - [`PowerManager`:System Power Manager(ArkTS)(API9)](code/SystemFeature/DeviceManagement/PowerManager) + - [`International`:i18n(ArkTS)(API9)](code/SystemFeature/Internationalnation/International) - data - - [`KvStore`:Distributed Database(ArkTS)(API8)](data/Kvstore) - - [`LiteStorage`:Lite Storage(ArkTS)(API8)](data/LiteStorage) - - [`Rdb`:Relational Database(ArkTS)(API8)](data/Rdb) - - [`DDMQuery`:DDMQuery(ArkTS)(API8)](data/DDMQuery) - - [`DistributedRdb`:Distributed RDB(ArkTS)(API8)](data/DistributedRdb) - - [`Preferences`:Preference(ArkTS)(API9)](data/Preferences) - - [`DistributedNote`:Distributed Memo (ArkTS)(API9)](data/DistributedNote) + - [`KvStore`:Distributed Database(ArkTS)(API9)](code/SuperFeature/DistributedAppDev/Kvstore) + - [`DistributedRdb`:Distributed RDB(ArkTS)(API9)](code/SuperFeature/DistributedAppDev/DistributedRdb) + - [`Preferences`:Preference(ArkTS)(API9)](code/BasicFeature/DataManagement/Preferences) + - [`DistributedNote`:Distributed Memo (ArkTS)(API9)](code/SuperFeature/DistributedAppDev/DistributedNote) - device - - [`DeviceManager`:Device Manager(ArkTS)(API8)](device/DeviceManager) - - [`Sensor`:Sensor(ArkTS)(API8)](device/Sensor) - - [`Vibrator`:Vibrator(ArkTS)(API8)](device/Vibrator) - - [`DeviceUsageStatistics`:Device Usage Statistics(ArkTS)(API8)](device/DeviceUsageStatistics) - - [`Browser`:Browser(ArkTS)(API9)](device/Browser) + - [`Sensor`:Sensor(ArkTS)(API9)](code/BasicFeature/DeviceManagement/Sensor) + - [`Vibrator`:Vibrator(ArkTS)(API9)](code/BasicFeature/DeviceManagement/Vibrator) + - [`DeviceUsageStatistics`:Device Usage Statistics(ArkTS)(API9)](code/BasicFeature/DeviceUsageStatistics/DeviceUsageStatistics) + - [`Browser`:Browser(ArkTS)(API9)](code/BasicFeature/Web/Browser) - Graphics - - [`JsWebGL`:WebGL(JS)(API8)](Graphics/JsWebGL) - - [`Window`:Window(ArkTS)(API9)](Graphics/Window) + - [`Window`:Window(ArkTS)(API9)](code/BasicFeature/WindowManagement/WindowManage) - media - - [`JsAudioPlayer`:Audio Player(JS)(API8)](media/JsAudioPlayer) - - [`JsVideo`:Video Player(JS)(API8)](media/JsVideo) - - [`Recorder`:Recorder(ArkTS)(API8)](media/Recorder) - - [`MultiMedia`:Multi Media(ArkTS)(API9)](media/MultiMedia) - - [`VideoPlayer`:Video Player(ArkTS)(API9)](media/VideoPlayer) - - [`JsRecorder`:Recorder(JS)(API8)](media/JSRecorder) + - [`Recorder`:Recorder(ArkTS)(API9)](code/BasicFeature/Media/Recorder) + - [`MultiMedia`:Multi Media(ArkTS)(API9)](code/Solutions/Media/MultiMedia) - DFX - - [`JsDotTest`:Dot Test(JS)(API8)](DFX/JsDotTest) - - [`FaultLogger`:Faulter Logger(ArkTS)(API8)](DFX/FaultLogger) - - [`Logger`:Logger(ArkTS)(API9)](DFX/Logger) + - [`FaultLogger`:Fault Logger(ArkTS)(API9)](code/BasicFeature/DFX/FaultLogger) + - [`Logger`:Logger(ArkTS)(API9)](code/BasicFeature/DFX/Logger) - Telephony - - [`Call`:Call(ArkTS)(API8)](Telephony/Call) - - [`Message`:Message(ArkTS)(API8)](Telephony/Message) - - [`RadioTech`:Radio Tech(ArkTS)(API8)](Telephony/RadioTech) - - [`SimManager`:SIM Card Manager(ArkTS)(API8)](Telephony/SimManager) - - [`MobileNetwork`:Cellular Network(ArkTS)(API9)](Telephony/MobileNetwork) + - [`Call`:Call(ArkTS)(API9)](code/BasicFeature/Telephony/Call) + - [`Message`:Message(ArkTS)(API9)](code/BasicFeature/Telephony/Message) + - [`RadioTech`:Radio Tech(ArkTS)(API9)](code/BasicFeature/Telephony/RadioTech) + - [`SimManager`:SIM Card Manager(ArkTS)(API9)](code/BasicFeature/Telephony/SimManager) + - [`MobileNetwork`:Cellular Network(ArkTS)(API9)](code/BasicFeature/Telephony/MobileNetwork) - thread - - [`JsWorker`:Launch a worker(JS)(API8)](thread/JsWorker) + - [`JsWorker`:Launch a worker(JS)(API9)](code/LaunguageBaseClassLibrary/JsWorker) - CompleteApps - - [`KikaInput`:Lite Input Method(JS)(API9)](CompleteApps/KikaInput) - - [`AstronautsGame`:A Game(C++)](CompleteApps/AstronautsGame) - - [`FlipClock`:Flip Clock(ArkTS)(API8)](CompleteApps/FlipClock) -- EngineeringCapability - - [`Npm`:npm's usage (ArkTS)(API9)](EngineeringCapability/Npm) + - [`KikaInput`:Lite Input Method(JS)(API10)](code/Solutions/InputMethod/KikaInput) + - [`FlipClock`:Flip Clock(ArkTS)(API9)](code/Solutions/Tools/FlipClock) - ETSUI - - [`Canvas`:Canvas(ArkTS)(API8)](ETSUI/Canvas) - - [`CustomComponent`:Custom Component(ArkTS)(API8)](ETSUI/CustomComponent) - - [`Process`:Process (ArkTS)(API8)](ETSUI/Process) - - [`BuildCommonView`:Build Common View (ArkTS)(API8)](ETSUI/BuildCommonView) - - [`DefiningPageLayoutAndConnection`:Defining Page Layout and Connection(ArkTS)(API8)](ETSUI/DefiningPageLayoutAndConnection) - - [`Drag`:Drag (ArkTS)(API8)](ETSUI/Drag) - - [`Component`:ArkTS Component Test Demo(ArkTS)(API8)](ETSUI/Component) - - [`ArkUIAnimation`:Animation(ArkTS)(API8)](ETSUI/ArkUIAnimation) - - [`MediaQuery`:Media Query (ArkTS)(API8)](ETSUI/MediaQuery) - - [`XComponent`:XComponent(ArkTS)(API8)](ETSUI/XComponent) - - [`MouseEvent`:Mouse Event (ArkTS)(API8)](ETSUI/MouseEvent) - - [`Web`:Web(ArkTS)(API8)](ETSUI/Web) - - [`Gallery`:Gallery (ArkTS)(API8)](ETSUI/Gallery) - - [`BringApp`:Bring App (ArkTS)(API8)](ETSUI/BringApp) - - [`AdaptiveCapabilities`:AdaptiveCapabilities(ArkTS)(API9)](ETSUI/AdaptiveCapabilities) - - [`Game2048`:2048 Game(ArkTS)(API9)](ETSUI/Game2048) - - [`Lottie`:Lottie(ArkTS)(API8)](ETSUI/Lottie) - - [`TransitionAnimation`:Transition Animation (ArkTS)(API9)](ETSUI/TransitionAnimation) -- FileManager - - [`Environment`:Environment (ArkTS)(API8)](FileManager/Environment) - - [`FileIo`:File IO(ArkTS)(API8)](FileManager/FileIo) -- Native - - [`NativeAPI`:NativeAPI(ArkTS)(API8)](Native/NativeAPI) + - [`Canvas`:Canvas(ArkTS)(API9)](code/UI/ArkTsComponentClollection/Canvas) + - [`DefiningPageLayoutAndConnection`:Defining Page Layout and Connection(ArkTS)(API9)](code/UI/ArkTsComponentClollection/DefiningPageLayoutAndConnection) + - [`Drag`:Drag (ArkTS)(API9)](code/UI/ArkTsComponentClollection/Drag) + - [`MediaQuery`:Media Query (ArkTS)(API9)](code/UI/ArkTsComponentClollection/MediaQuery) + - [`AdaptiveCapabilities`:AdaptiveCapabilities(ArkTS)(API9)](code/SuperFeature/MultiDeviceAppDev/AdaptiveCapabilities) + - [`Game2048`:2048 Game(ArkTS)(API9)](code/Solutions/Game/Game2048) + - [`Lottie`:Lottie(ArkTS)(API9)](code/Solutions/Game/Lottie) - Notification - - [`CommonEvent`:Common Event(ArkTS)(API8)](Notification/CommonEvent) - - [`Emitter`:Emitter (ArkTS)(API8)](Notification/Emitter) - - [`AlarmClock`:Background Alarm Clock (ArkTS)(API8)](Notification/AlarmClock) - - [`Notification`:Subscribe&Send Notification (ArkTS)(API9)](Notification/Notification) + - [`CustomCommonEvent`:Custom Common Event(ArkTS)(API9)](code/BasicFeature/Notification/CustomCommonEvent) + - [`CustomEmitter`:Custom Emitter (ArkTS)(API9)](code/BasicFeature/Notification/CustomEmitter) + - [`CustomNotification`:Subscribe&Send Notification (ArkTS)(API9)](code/BasicFeature/Notification/CustomNotification) - Network - - [`Http`:http Request(ArkTS)(API8)](Network/Http) - - [`Socket`:Socket(ArkTS)(API8)](Network/Socket) + - [`Http`:http Request(ArkTS)(API9)](code/BasicFeature/Connectivity/Http) + - [`Socket`:Socket(ArkTS)(API9)](code/BasicFeature/Connectivity/Socket) - Preset - - [`Clock`:Clock(ArkTS)(API9)](Preset/Clock) - - [`FlashLight`:Flash Light(ArkTS)(API8)](Preset/FlashLight) - - [`DistributeCalc`:Distributed Calculator(ArkTS)(API8)](Preset/DistributeCalc) - - [`AirQuality`:Air Quality (ArkTS)(API9)](Preset/AirQuality) - - [`DistributedMusicPlayer`:Distributed Music Player (ArkTS)(API9)](Preset/DistributedMusicPlayer) + - [`ArkTSClock`:Clock(ArkTS)(API9)](code/Solutions/Tools/ArkTSClock) + - [`ArkTSDistributeCalc`:Distributed Calculator(ArkTS)(API9)](code/SuperFeature/DistributedAppDev/ArkTSDistributedCalc) + - [`ArkTSDistributedMusicPlayer`:Distributed Music Player (ArkTS)(API9)](code/SuperFeature/DistributedAppDev/ArkTSDistributedMusicPlayer) - PackageManagement - - [`ZipLib`:zip&unzip(ArkTS)(API9)](PackageManagement/ZipLib) + - [`ZipLib`:zip&unzip(ArkTS)(API9)](code/LaunguageBaseClassLibrary/ZipLib) - ResourcesSchedule - - [`Flybird`:Game(ArkTS)(API9)](ResourcesSchedule/Flybird) - - [`BackgroundTaskManager`:Background Task Manager(ArkTS)(API8)](ResourcesSchedule/BackgroundTaskManager) + - [`Flybird`:Game(ArkTS)(API9)](code/BasicFeature/TaskManagement/Flybird) - UI - [`AtomicLayout`:Atomic Layout(JS)(API8)](UI/AtomicLayout) - [`Badge`:Badge(JS)(API8)](UI/Badge) - - [`International`:i18n(JS)(API8)](UI/International) - - [`JsFA`:FA Demo(JS)(API8)](UI/JsFA) - - [`JsShopping`:Shopping Demo(JS)(API8)](UI/JsShopping) - - [`JSMenu`:Menu(JS)(API8)](UI/JSMenu) - - [`JSUICustomComponent`:UI Custom Component(JS)(API8)](UI/JSUICustomComponent) - - [`JsAnimation`:Animation(JS)(API8)](UI/JsAnimation) - [`JsAnimationStyle`:Animation Style(JS)(API8)](UI/JsAnimationStyle) - - [`JsBasicComponents`:Basic Components(JS)(API8)](UI/JsBasicComponents) - - [`JsBrightness`:Brightness(JS)(API8)(Full SDK)](UI/JsBrightness) - - [`JsCanvas`:Canvas(JS)(API8)](UI/JsCanvas) - - [`JsDevice`:Device Info(JS)(API8)](UI/JsDevice) - - [`JsDialog`:Dialog(JS)(API8)](UI/JsDialog) - - [`JsGrid`:Grid Layout(JS)(API8)](UI/JsGrid) - - [`JsList`:List(JS)(API8)](UI/JsList) - - [`JsPanel`:Panel(JS)(API8)](UI/JsPanel) - - [`JsRouter`:Router(JS)(API8)](UI/JsRouter) - - [`JsSvg`:SVG(JS)(API8)](UI/JsSvg) - - [`JsTimer`:Timer(JS)(API8)](UI/JsTimer) - - [`Picker`:Picker (JS)(API8)](UI/Picker) - - [`Popup`:Popup (JS)(API8)](UI/Popup) - - [`RefreshContainer`:Refresh Container(JS)(API8)](UI/RefreshContainer) - - [`Slider`:Slider(JS)(API8)](UI/Slider) - - [`Stack`:Stack(JS)(API8)](UI/Stack) - - [`StepNavigator`:Step Navigator(JS)(API8)](UI/StepNavigator) - - [`Swiper`:Swiper(JS)(API8)](UI/Swiper) - - [`Tabs`:Tabs(JS)(API8)](UI/Tabs) - - [`Toolbar`:Toolbar (JS)(API8)](UI/Toolbar) - - [`chart`:Chart(JS)(API8)](UI/chart) - - [`JsAdaptivePortalList`:Adaptive Portal List(JS)(API8)](UI/JsAdaptivePortalList) - - [`JsAdaptivePortalPage`:Adaptive Portal Page(JS)(API8)](UI/JsAdaptivePortalPage) - - [`JsImage`:Basic Image(JS)(API8)](UI/JsImage) - - [`JsGallery`:Gallery Demo(JS)(API8)](UI/JsGallery) - - [`JSComponments`:Js Component (JS)(API8)](UI/JSComponments) - - [`JsUserRegistration`:User Registration(JS)(API8)](UI/JsUserRegistration) - - [`JsAdaptiveServiceWidget`:Adaptive Service Widget(JS)(API8)](UI/JsAdaptiveServiceWidget) - - [`JsAnimator`:Animator(JS)(API8)](UI/JsAnimator) -- Util - - [`UtilBase64Codec`:Base64 Codec(ArkTS)(API8)](Util/UtilBase64Codec) - - [`UtilScope`:Scope(ArkTS)(API8)](Util/UtilScope) - - [`UtilStringCodec`:String Codec(ArkTS)(API8)](Util/UtilStringCodec) - - [`UtilLruBuffer`:Buffer(ArkTS)(API8)](Util/UtilLruBuffer) - - [`UtilRationalNumber`:Rational Number(ArkTS)(API8)](Util/UtilRationalNumber) - - [`UtilTypeCheck`:Type Check(ArkTS)(API8)](Util/UtilTypeCheck) - - [`UtilUrlString`:URL String Parser (ArkTS)(API8)](Util/UtilUrlString) - - [`XmlTextConvert`:xml->text Convertor(ArkTS)(API8)](Util/XmlTextConvert) ## Usage diff --git a/README_zh.md b/README_zh.md index dc9d36761..6361cd097 100755 --- a/README_zh.md +++ b/README_zh.md @@ -417,10 +417,9 @@ code ## 使用方法 -1. 本仓默认下载全量工程代码,如需下载单个应用工程代码,请先下载并执行工具[【Windows版本】](DirCloneTool/CloneSpecifyDirForWindows.bat)、[【macOS版本】]()、[【Linux版本】]() -2. 将独立的应用示例工程导入DevEco Studio进行编译构建及运行调试。 -3. 部分应用示例中含有多个模块,开发者可以选择对单个模块进行编译构建,生成一个HAP应用安装包,也可以对整个工程进行编译构建,生成多个HAP应用安装包。 -4. 安装运行后,即可在设备上查看应用示例运行效果,以及进行相关调试。 +1. 将独立的应用示例工程导入DevEco Studio进行编译构建及运行调试。 +2. 部分应用示例中含有多个模块,开发者可以选择对单个模块进行编译构建,生成一个HAP应用安装包,也可以对整个工程进行编译构建,生成多个HAP应用安装包。 +3. 安装运行后,即可在设备上查看应用示例运行效果,以及进行相关调试。 ## Changlog diff --git a/SampleReadTemplate.md b/SampleReadTemplate.md index ec3534262..924ab6c92 100644 --- a/SampleReadTemplate.md +++ b/SampleReadTemplate.md @@ -14,7 +14,7 @@ |主页|悬浮模式|列表|悬浮模式| |--------------------------------|--------------------------------|--------------------------------|--------------------------------| -|![image](FileManager/FileManager/screenshots/main.png)|![image](FileManager/FileManager/screenshots/image_file_list.png)|![image](FileManager/FileManager/screenshots/image_preview.png)|![image](FileManager/FileManager/screenshots/document_list.png)| +|![image](code/BasicFeature/FileManagement/FileManager/screenshots/main.png)|![image](code/BasicFeature/FileManagement/FileManager/screenshots/image_file_list.png)|![image](code/BasicFeature/FileManagement/FileManager/screenshots/image_preview.png)|![image](code/BasicFeature/FileManagement/FileManager/screenshots/document_list.png)| 使用说明 @@ -69,22 +69,22 @@ Library/src/main/ets/ ### 具体实现 先描述功能都在哪个模块,再具体描述如何实现这些功能的,以及在哪里使用他们,附上文件链接;示例如下: -* 增添文件、删除文件、查找指定类型文件文件和预览图片的功能接口封装在MediaLibraryManager,源码参考:[MediaLibraryManager.ts](https://gitee.com/openharmony/applications_app_samples/blob/master/code/BasicFeature/FileManagement/FileManager/Library/src/main/ets/filemanager/medialibrary/MediaLibraryManager.ts) +* 增添文件、删除文件、查找指定类型文件文件和预览图片的功能接口封装在MediaLibraryManager,源码参考:[MediaLibraryManager.ts](code/BasicFeature/FileManagement/FileManager/Library/src/main/ets/filemanager/medialibrary/MediaLibraryManager.ts) * 使用mediaLibrary.getMediaLibrary来获取MediaLibrary对象; * 读取每个文件的数据:使用MediaLibrary.getFileAssets读取满足条件的文件集合FetchFileResult,然后调用FetchFileResult.getFirstObject(); * 创建模拟文件:使用MediaLibrary.getPublicDirectory()获取系统预定的目录,然后使用MediaLibrary.createAsset(); * 删除指定路径的文件:使用MediaLibrary.deleteAsset(); * 获取预览图:使用image.createImageSource()创建指定的文件资源ImageSource,然后调用ImageSource.createPixelMap(),接口参考:[@ohos.multimedia.image](https://gitee.com/openharmony/docs/blob/master/zh-cn/application-dev/reference/apis/js-apis-image.md) 。 -* 在Library模块中通过封装FileManager向外提供功能接口,如MediaLibraryManager.getPixelMapByFileAsset(),源码参考:[FileManager.ts](https://gitee.com/openharmony/applications_app_samples/blob/master/code/BasicFeature/FileManagement/FileManager/Library/src/main/ets/filemanager/FileManager.ts) - * 如效果预览中的**图片列表**,读取指定类型的文件:在[FileList.ets](https://gitee.com/openharmony/applications_app_samples/blob/master/code/BasicFeature/FileManagement/FileManager/entry/src/main/ets/filemanager/pages/common/FileList.ets) +* 在Library模块中通过封装FileManager向外提供功能接口,如MediaLibraryManager.getPixelMapByFileAsset(),源码参考:[FileManager.ts](code/BasicFeature/FileManagement/FileManager/Library/src/main/ets/filemanager/FileManager.ts) + * 如效果预览中的**图片列表**,读取指定类型的文件:在[FileList.ets](code/BasicFeature/FileManagement/FileManager/entry/src/main/ets/filemanager/pages/common/FileList.ets) 中调用FileManager.getFileAssets(); - * 创建模拟文件:在[FileList.ets](https://gitee.com/openharmony/applications_app_samples/blob/master/code/BasicFeature/FileManagement/FileManager/entry/src/main/ets/filemanager/pages/common/FileList.ets) + * 创建模拟文件:在[FileList.ets](code/BasicFeature/FileManagement/FileManager/entry/src/main/ets/filemanager/pages/common/FileList.ets) 中调用FileManager.createTxtFileAsset(); - * 删除指定路径的文件:在[FileList.ets](https://gitee.com/openharmony/applications_app_samples/blob/master/code/BasicFeature/FileManagement/FileManager/entry/src/main/ets/filemanager/pages/common/FileList.ets) + * 删除指定路径的文件:在[FileList.ets](code/BasicFeature/FileManagement/FileManager/entry/src/main/ets/filemanager/pages/common/FileList.ets) 中调用FileManager.deleteFileAsset(); - * 获取缩略图:在[ThumbnailImage.ets](https://gitee.com/openharmony/applications_app_samples/blob/master/code/BasicFeature/FileManagement/FileManager/Library/src/main/ets/filemanager/components/ThumbnailImage.ets) 中调用FileManager.getThumbnail(); - * 如效果预览中的**图片预览**,获取预览图:在[ImagePreview.ets](https://gitee.com/openharmony/applications_app_samples/blob/master/code/BasicFeature/FileManagement/FileManager/entry/src/main/ets/filemanager/pages/image/ImagePreview.ets) 中调用FileManager.getPixelMapByFileAsset()。 + * 获取缩略图:在[ThumbnailImage.ets](code/BasicFeature/FileManagement/FileManager/Library/src/main/ets/filemanager/components/ThumbnailImage.ets) 中调用FileManager.getThumbnail(); + * 如效果预览中的**图片预览**,获取预览图:在[ImagePreview.ets](code/BasicFeature/FileManagement/FileManager/entry/src/main/ets/filemanager/pages/image/ImagePreview.ets) 中调用FileManager.getPixelMapByFileAsset()。 ### 相关权限 diff --git a/changelog.md b/changelog.md index e9df46fa1..255285226 100644 --- a/changelog.md +++ b/changelog.md @@ -1,113 +1,101 @@ # 5月5日-5月13日新增sample -1.[`Shopping`:购物示例应用(eTS)(API8)](AppSample/Shopping) -2.[`Chat`:聊天示例应用(eTS)(API8)](AppSample/Chat) -3.[`Browser`:浏览器(eTS)(API9)](device/Browser) -4.[`DeviceUsageStatistics`:设备使用信息统计(eTS)(API8)](device/DeviceUsageStatistics) -5.[`AdaptiveCapabilities`:多设备自适应能力(eTS)(API9)](ETSUI/AdaptiveCapabilities) -6.[`Game2048`:2048游戏(eTS)(API9)](ETSUI/Game2048) -7.[`JsAdaptiveServiceWidget`:多设备自适应服务卡片(JS)(API8)](UI/JsAdaptiveServiceWidget) +1.[`Chat`:聊天示例应用(ArkTS)(API9)](code/Solutions/IM/Chat) +2.[`Browser`:浏览器(ArkTS)(API9)](code/BasicFeature/Web/Browser) +3.[`DeviceUsageStatistics`:设备使用信息统计(ArkTS)(API9)](code/BasicFeature/DeviceUsageStatistics/DeviceUsageStatistics) +4.[`AdaptiveCapabilities`:多设备自适应能力(ArkTS)(API9)](code/SuperFeature/MultiDeviceAppDev/AdaptiveCapabilities) +5.[`Game2048`:2048游戏(ArkTS)(API9)](code/Solutions/Game/Game2048) # 5月13日-5月28日新增sample -1.[`Window`:窗口(eTS)(API9)](Graphics/Window) -2.[`Preferences`:首选项(eTS)(API9)](data/Preferences) -3.[`NativeAPI`:NativeAPI(eTS)(API8)](Native/NativeAPI) -4.[`International`:国际化(eTS)(API8)](common/International) -5.[`Lottie`:Lottie(eTS)(API8)](ETSUI/Lottie) -6.[`FlipClock`: 时钟(eTS)(API8)](CompleteApps/FlipClock) -7.[`JsAnimator`: 动画(Js)(API8)](UI/JsAnimator) +1.[`WindowManage`:窗口(ArkTS)(API9)](code/BasicFeature/WindowManagement/WindowManage) +2.[`Preferences`:首选项(ArkTS)(API9)](code/BasicFeature/DataManagement/Preferences) +3.[`International`:国际化(ArkTS)(API9)](code/SystemFeature/Internationalnation/International) +4.[`Lottie`:Lottie(ArkTS)(API9)](code/Solutions/Game/Lottie) +5.[`FlipClock`: 时钟(ArkTS)(API9)](code/Solutions/Tools/FlipClock) + # 5月28日-6月6日新增sample -1.[`DistributedNote`:分布式备忘录(eTS)(API9)](data/DistributedNote) -2.[`Logger`:日志打印(eTS)(API9)](DFX/Logger) -3.[`MobileNetwork`:蜂窝数据(eTS)(API9)](Telephony/MobileNetwork) +1.[`DistributedNote`:分布式备忘录(ArkTS)(API9)](code/SuperFeature/DistributedAppDev/DistributedNote) +2.[`Logger`:日志打印(ArkTS)(API9)](code/BasicFeature/DFX/Logger) +3.[`MobileNetwork`:蜂窝数据(ArkTS)(API9)](code/BasicFeature/Telephony/MobileNetwork) + # 6月6日-6月9日新增sample (总计26个分类,146个sample) -1.[`MissionManager`:系统任务管理(eTS)(API9)](ability/MissionManager) -2.[`AirQuality`:空气质量(eTS)(API9)](Preset/AirQuality) -3.[`TransitionAnimation`:转场动画(eTS)(API9)](ETSUI/TransitionAnimation) -4.[`ZipLib`:压缩与解压(eTS)(API9)](PackageManagement/ZipLib) -5.[`Npm`:npm的使用(eTS)(API9)](EngineeringCapability/Npm) -6.[`DistributedMusicPlayer`:分布式音乐(eTS)(API9)](Preset/DistributedMusicPlayer) +1.[`MissionManager`:系统任务管理(ArkTS)(API9)](code/SystemFeature/ApplicationModels/MissionManager) +2.[`ZipLib`:压缩与解压(ArkTS)(API9)](code/LaunguageBaseClassLibrary/ZipLib) +3.[`ArkTSDistributedMusicPlayer`:分布式音乐(ArkTS)(API9)](code/SuperFeature/DistributedAppDev/ArkTSDistributedMusicPlayer) + # 6月9日-6月18日新增sample (总计27个分类,155个sample) -1.[`PatternLock`:图案密码锁组件(eTS)(API9)](ETSUI/PatternLock) -2.[`UserAuth`:用户认证(eTS)(API9)](Safety/UserAuth) -3.[`Cipher`:加解密(eTS)(API8)](Safety/Cipher) -4.[`Screen`:屏幕属性(eTS)(API9)](device/Screen) -5.[`Search`:Search组件(eTS)(API9)](ETSUI/Search) -6.[`USBManager`:USB管理(eTS)(API8)](device/USBManager) -7.[`DistributedDataGobang`:分布式五子棋(eTS)(API9)](data/DistributedDataGobang) -8.[`Image`:图片处理(eTS)(API8)](media/Image) -9.[`AbilityAccessCtrl`:访问权限控制(eTS)(API8)](Safety/AbilityAccessCtrl) +1.[`PatternLock`:图案密码锁组件(ArkTS)(API9)](code/Solutions/Tools/PatternLock) +2.[`Cipher`:加解密(ArkTS)(API9)](code/BasicFeature/Security/Cipher) +3.[`Screen`:屏幕属性(ArkTS)(API9)](code/SystemFeature/DeviceManagement/Screen) +4.[`DistributedDataGobang`:分布式五子棋(ArkTS)(API9)](code/Solutions/Game/DistributedDataGobang) +5.[`Image`:图片处理(ArkTS)(API9)](code/BasicFeature/Media/Image) +6.[`AbilityAccessCtrl`:访问权限控制(ArkTS)(API9)](code/SystemFeature/Security/AbilityAccessCtrl) + # 6月18日-6月24日新增sample(总计27个分类,161个sample) -1.[`WebSocket`:WebSocket(eTS)(API8)](Network/WebSocket) -2.[`Bluetooth`:蓝牙(eTS)(API9)](device/Bluetooth) -3.[`GamePuzzle`:拼图(eTS)(API9)](media/GamePuzzle) -4.[`UploadDownload`:上传下载(eTS)(API8)](Network/UploadDownload) -5.[`KikaInput`:中文输入法(eTS)(API8)](Native/KikaInput) -6.[`Location`:位置服务(eTS)(API9)](device/Location) +1.[`WebSocket`:WebSocket(ArkTS)(API9)](code/BasicFeature/Connectivity/WebSocket) +2.[`Bluetooth`:蓝牙(ArkTS)(API9)](code/SystemFeature/Connectivity/Bluetooth) +3.[`GamePuzzle`:拼图(ArkTS)(API9)](code/BasicFeature/Media/GamePuzzle) +4.[`UploadDownload`:上传下载(ArkTS)(API8)](Network/UploadDownload) +5.[`KikaInput`:中文输入法(ArkTS)(API10)](code/Solutions/InputMethod/KikaInput) +6.[`Location`:位置服务(ArkTS)(API9)](code/BasicFeature/DeviceManagement/Location) + # 6月25日-7月7日新增sample(总计28个分类,164个sample) -1.[`Observer`:Observer(eTS)(API9)](Telephony/Observer) -2.[`AdaptiveCapabilities`:多设备自适应能力(eTS)(API9)](MultiDeviceAppDev/AdaptiveCapabilities) -3.[`JsAdaptiveCapabilities`:多设备自适应能力(JS)(API9)](MultiDeviceAppDev/JsAdaptiveCapabilities) +1.[`Observer`:Observer(ArkTS)(API9)](code/BasicFeature/Telephony/Observer) +2.[`AdaptiveCapabilities`:多设备自适应能力(ArkTS)(API9)](code/SuperFeature/MultiDeviceAppDev/AdaptiveCapabilities) +3.[`JsAdaptiveCapabilities`:多设备自适应能力(JS)(API9)](code/SuperFeature/MultiDeviceAppDev/JsAdaptiveCapabilities) # 7月8日-7月14日新增Sample(总计28个分类,163个sample) -1.删除[`AdaptiveCapabilities`:多设备自适应能力(eTS)(API9)](ETSUI/AdaptiveCapabilities) +1.删除[`AdaptiveCapabilities`:多设备自适应能力(ArkTS)(API9)](ArkTSUI/AdaptiveCapabilities) # 7月14日-9月5日新增Sample(总计28个分类,174个sample) -1.[`Share`:分享(eTS)(API9)(Full SDK)](Share/Share) -2.[`WorkScheduler`:延迟任务调度(eTS)(API9)](ResourcesSchedule/WorkScheduler) -3.[`UpgradePopup`:自定义弹窗(eTS)(API9)](ETSUI/UpgradePopup) -4.[`Search`:Search组件(eTS)(API9)](ETSUI/Search) -5.[`TransitionAnimation`:转场动画(eTS)(API9)](ETSUI/TransitionAnimation) -6.[`Contact`:Contact(eTS)(API8)](Telephony/Contact) -7.[`ImageShow`:图片显示(eTS)(API9)](media/ImageShow) -8.[`Image`:图片处理(eTS)(API8)](media/Image) -9.[`Location`:位置服务(eTS)(API9)](device/Location) -10.[`Launcher`:仿桌面应用(eTS)(API9)(Full SDK)](ability/Launcher) -11.[`VideoPlayer`:视频播放(eTS)(API9)(Full SDK)](media/VideoPlayer) -12.[`WindowExtAbility`:窗口扩展(eTS)(API9)(Full SDK)](ability/WindowExtAbility) -13.[`FaModel`:FA模型(eTS)(API9)](ability/FaModel) -14.[`StageModel`:Stage模型(eTS)(API9)(Full SDK)](ability/StageModel) -15.[`GalleryForm`:图库卡片(eTS)(API9)](ability/GalleryForm) -16.[`Http`:数据请求(eTS)(API9)](Network/Http) -17.[`AppMarket`:一多应用市场首页(eTS)(API9)](MultiDeviceAppDev/AppMarket) -18.[`Weather`:一多天气(eTS)(API9)](MultiDeviceAppDev/Weather) +1.[`CustomShare`:自定义分享(ArkTS)(API9)(Full SDK)](code/BasicFeature/ApplicationModels/CustomShare) +2.[`WorkScheduler`:延迟任务调度(ArkTS)(API9)](code/BasicFeature/TaskManagement/WorkScheduler) +3.[`Contact`:Contact(ArkTS)(API9)](code/BasicFeature/Telephony/Contact) +4.[`ImageShow`:图片显示(ArkTS)(API9)](code/BasicFeature/Media/ImageShow) +5.[`Image`:图片处理(ArkTS)(API9)](code/BasicFeature/Media/Image) +6.[`Location`:位置服务(ArkTS)(API9)](code/BasicFeature/DeviceManagement/Location) +7.[`Launcher`:仿桌面应用(ArkTS)(API9)(Full SDK)](code/SystemFeature/ApplicationModels/Launcher) +8.[`WindowExtAbility`:窗口扩展(ArkTS)(API9)(Full SDK)](code/SystemFeature/WindowManagement/WindowExtAbility) +9.[`StageModel`:Stage模型(ArkTS)(API9)(Full SDK)](code/BasicFeature/ApplicationModels/StageModel) +10.[`Http`:数据请求(ArkTS)(API9)](code/BasicFeature/Connectivity/Http) +11.[`AppMarket`:一多应用市场首页(ArkTS)(API9)](code/SuperFeature/MultiDeviceAppDev/AppMarket) +12.[`Weather`:一多天气(ArkTS)(API9)](code/SuperFeature/MultiDeviceAppDev/Weather) # 9月5日-9月16日新增Sample(总计28个分类,170个sample) 新增Sample: -1.[`HealthyDiet`:健康饮食(eTS)(API9)](ETSUI/HealthyDiet) -2.[`MusicAlbum`:一多音乐专辑主页(eTS)(API9)](MultiDeviceAppDev/MusicAlbum) -3.[`Vegetable`:一多蔬菜百科主页(eTS)(API9)](MultiDeviceAppDev/Vegetable) -4.[`MediaCollections`:媒体管理合集(eTS)(API9)(Full SDK)](media/MediaCollections) +1.[`HealthyDiet`:健康饮食(ArkTS)(API9)](code/SuperFeature/MultiDeviceAppDev/HealthyDiet) +2.[`MusicAlbum`:一多音乐专辑主页(ArkTS)(API9)](code/SuperFeature/MultiDeviceAppDev/MusicAlbum) +3.[`MediaCollections`:媒体管理合集(ArkTS)(API9)(Full SDK)](code/BasicFeature/FileManagement/MediaCollections) 删除Sample: -1.[`JsRecorder`:录音机(eTS)(API8)(Full SDK)](media/JsRecorder) -2.[`FlashLight`:手电筒(eTS)(API8)(Full SDK)](Preset/FlashLight) -3.[`AirQuality`:空气质量(eTS)(API9)](Preset/AirQuality) +1.[`JsRecorder`:录音机(ArkTS)(API8)(Full SDK)](media/JsRecorder) +2.[`FlashLight`:手电筒(ArkTS)(API8)(Full SDK)](Preset/FlashLight) +3.[`AirQuality`:空气质量(ArkTS)(API9)](Preset/AirQuality) 4.[`ECG`:心率检测(JS)(API8)](common/ECG) 5.[`Flashlight`:手电筒(JS)(API8)](common/Flashlight) 6.[`AirQuality`:空气质量(JS)(API8)](common/AirQuality) # 9月16日-10月21日新增Sample(总计28个分类,175个sample) -1.[`AbilityConnectServiceExtension`:Ability与ServiceExtensionAbility通信(eTS)(API9)(Full SDK)](ability/AbilityConnectServiceExtension) -2.[`CustomNotification`:自定义通知(eTS)(API9)](Notification/CustomNotification) -3.[`OrangeShopping`:购物示例应用(eTS)(API9)](ETSUI/OrangeShopping) -4.[`ComponentCollection`:组件集合(eTS)(API9)](ETSUI/ComponentCollection) -5.[`JsComponentCollection`:组件集合(JS)(API9)](UI/JsComponentCollection) +1.[`AbilityConnectServiceExtension`:Ability与ServiceExtensionAbility通信(ArkTS)(API9)(Full SDK)](code/BasicFeature/IDL/AbilityConnectServiceExtension) +2.[`CustomNotification`:自定义通知(ArkTS)(API9)](code/BasicFeature/Notification/CustomNotification) +3.[`OrangeShopping`:购物示例应用(ArkTS)(API9)](code/Solutions/Shopping/OrangeShopping) +4.[`ComponentCollection`:组件集合(ArkTS)(API9)](code/UI/ArkTsComponentClollection/ComponentCollection) +5.[`JsComponentCollection`:组件集合(JS)(API9)](code/UI/JsComponentClollection/JsComponentCollection) # 11月7日删除Sample(总计27个分类,173个sample) -1.[`NativeAPI`:NativeAPI(eTS)(API8)](Native/NativeAPI) -2.[`XComponent`:XComponent(eTS)(API9)](ETSUI/XComponent) +1.[`NativeAPI`:NativeAPI(ArkTS)(API8)](Native/NativeAPI) +2.[`XComponent`:XComponent(ArkTS)(API9)](ArkTSUI/XComponent) # 11月11日删除sample(总计27个分类,171个sample) -1.[`Notification`:通知(eTS)(API8)](common/Notification) -2.[`StageCallAbility`:StageCallAbility的创建与使用(eTS)(API9)(Full SDK)](ability/StageCallAbility) +1.[`Notification`:通知(ArkTS)(API8)](common/Notification) +2.[`StageCallAbility`:StageCallAbility的创建与使用(ArkTS)(API9)(Full SDK)](ability/StageCallAbility) # 12月到1月新增Sample(总计27个分类,178个sample) -1.[`FormGame`:Stage模型卡片JS与C++通信(eTS)(API9)](ability/FormGame) -2.[`ScreenDetector`:屏幕探测(eTS)(API9)](device/ScreenDetector) -3.[`ScreenRecorder`:录屏(eTS)(API9)(Full SDK)](media/ScreenRecorder) -4.[`FileManager`:文件管理(eTS)(API9)(Full SDK)](FileManager/FileManager) -5.[`Settings`:一多设置典型页面(eTS)(API9)](MultiDeviceAppDev/Settings) -6.[`QRCodeScan`:二维码扫描(eTS)(API9)(Full SDK)](media/QRCodeScan) -7.[`RunJsInWeb`:JS注入与执行(eTS)(API8)(Full SDK)](Web/RunJsInWeb) \ No newline at end of file +1.[`FormGame`:Stage模型卡片JS与C++通信(ArkTS)(API9)](code/SuperFeature/Widget/FormGame) +2.[`ScreenDetector`:屏幕探测(ArkTS)(API9)](code/BasicFeature/DeviceManagement/ScreenDetector) +3.[`ScreenRecorder`:录屏(ArkTS)(API9)(Full SDK)](code/SystemFeature/Media/ScreenRecorder) +4.[`FileManager`:文件管理(ArkTS)(API9)(Full SDK)](code/BasicFeature/FileManagement/FileManager) +5.[`Settings`:一多设置典型页面(ArkTS)(API9)](code/SuperFeature/MultiDeviceAppDev/Settings) +6.[`QRCodeScan`:二维码扫描(ArkTS)(API9)(Full SDK)](code/BasicFeature/Media/QRCodeScan) +7.[`RunJsInWeb`:JS注入与执行(ArkTS)(API9)(Full SDK)](code/BasicFeature/Web/RunJsInWeb) \ No newline at end of file diff --git a/code/BasicFeature/ApplicationModels/StageModel/README.md b/code/BasicFeature/ApplicationModels/StageModel/README.md index f1d51c4ed..923bff8c2 100644 --- a/code/BasicFeature/ApplicationModels/StageModel/README.md +++ b/code/BasicFeature/ApplicationModels/StageModel/README.md @@ -54,91 +54,6 @@ The stage model is designed based on the following considerations: 7. Starting from API version 9, the stage model obtains the **resourceManager** object through the context and then calls the internal interfaces to obtain resources without importing **@ohos.resourceManager**. The FA model obtains application resource information by importing **@ohos.resourceManager**. -#### API Mappings Between FA and Stage Models (FA Model -> Stage Model) - -**FeatureAbility - > AbilityContext and dataShare interfaces**: - -[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts): getWant -> MainAbility: want - -[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts): startAbilityForResult -> AbilityContextController: startAbilityForResult - -[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts): acquireDataAbilityHelper -> DataShareHelper: createDataShareHelper - -[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts): terminateSelfWithResult -> AbilityContextController: terminateSelfWithResult - -[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts): hasWindowFocus -> Not supported in the stage model - -[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts): terminateSelf -> AbilityContextController: terminateSelf - -[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts): getWindow -> WindowController: getTopWindow - -[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts): startServiceAbility -> AbilityContextController: startAbility - -[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts): connectService -> AbilityContextController: connectAbility - -[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts): disconnectService -> AbilityContextController: disconnectAbility - -**context -> AbilityContext, Bundle, Window, and abilityAccessCtrl interfaces:** - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): getOrCreateLocalDir -> BundleController: entryDir - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): verifyPermission -> AbilityAccessCtrlController: verifyAccessToken - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): requestPermissionsFromUser -> AbilityContextController: requestPermissionsFromUser - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): getApplicationInfo -> BundleController: getApplicationInfo - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): getBundleName -> AbilityContextPage: abilityInfo.bundleName (attributes) - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): getDisplayOrientation -> AbilityContextPage: config.direction (attributes) - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): setDisplayOrientation -> WindowController: setPreferredOrientation - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): setShowOnLockScreen -> MainAbility: setShowOnLockScreen - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): setWakeUpScreen -> WindowController: setWakeUpScreen - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): getProcessInfo -> AbilityContextPage: abilityInfo.descriptionId; abilityInfo.name (attributes) - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): getElementName -> BundleController: getAbilityInfo - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): getProcessName -> BundleController: process - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): getCallingBundle -> want.parameters (attributes) - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): getCacheDir -> AbilityContextPage: cacheDir (attributes) - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): getFilesDir -> AbilityContextPage: filesDir (attributes) - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): getOrCreateDistributedDir -> AbilityContextPage: distributedFilesDir (attributes) - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): getAppType -> BundleController: entityType - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): getHapModuleInfo -> AbilityContextPage: currentHapModuleInfo (attributes) - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): getAppVersionInfo -> BundleController.getDispatcherVersion - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): getAbilityInfo -> AbilityContextPage: abilityInfo (attributes) - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): getApplicationContext -> AbilityContextPage: getApplicationContext() - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): isUpdatingConfigurations -> Not supported in the stage model - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts): printDrawnCompleted -> Not supported in the stage model - - **particleAbility -> ServiceExtensionContext and dataShare interfaces** - - - [ParticleAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/ParticleAbilityHelper.ts): startAbility -> ServiceExtContextController: startAbility - - [ParticleAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/ParticleAbilityHelper.ts): connectAbility -> ServiceExtContextController: connectAbility - - [ParticleAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/ParticleAbilityHelper.ts): disconnectAbility -> ServiceExtContextController: disconnectAbility - - [ParticleAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/ParticleAbilityHelper.ts): terminateSelf -> ServiceExtContextController: terminateSelf - - [ParticleAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/ParticleAbilityHelper.ts): acquireDataAbilityHelper -> DataShareHelper: createDataShareHelper - #### Usage 1. Touch **DataShareExtAbility**. The **DataShareExtAbility** page is displayed. @@ -163,12 +78,12 @@ N/A ### Dependency -The stage model is upgraded from the FA model. For details about the FA model, see [FA Model](../FaModel). +N/A ### Constraints 1. This sample can only be run on standard-system devices. -2. **ServiceExtensionAbility** and **DataShareExtensionAbility** are system APIs and require the use of the Full SDK. To use the Full SDK, you must manually obtain it from the mirror and switch to it in DevEco Studio. For details, see [Guide to Switching to Full SDK](https://gitee.com/openharmony/docs/blob/master/en/application-dev/quick-start/full-sdk-switch-guide.md). +2. **ServiceExtensionAbility** and **DataShareExtensionAbility** are system APIs and require the use of the Full SDK. To use the Full SDK, you must manually obtain it from the mirror and switch to it in DevEco Studio. For details, see [Guide to Switching to Full SDK](https://docs.openharmony.cn/pages/v3.2/zh-cn/application-dev/quick-start/full-sdk-switch-guide.md/). 3. DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) must be used. diff --git a/code/BasicFeature/ApplicationModels/StageModel/README_zh.md b/code/BasicFeature/ApplicationModels/StageModel/README_zh.md index 9e9379ea5..073e7d090 100644 --- a/code/BasicFeature/ApplicationModels/StageModel/README_zh.md +++ b/code/BasicFeature/ApplicationModels/StageModel/README_zh.md @@ -6,7 +6,7 @@ #### Stage和FA模型的区别 -1.在Stage模型中主要有module.json5,需要时对应的ServiceExtAbility等须配置在module.json5中的extensionAbilities中,Page页面的Ability在abilites中;对应FA模型中主要配置文件config.json,需要时将对应的Ability配置在config.json中module/abilites。 +1.在Stage模型中主要有module.json5,需要时将对应的ServiceExtAbility等配置在module.json5中的extensionAbilities中,Page页面的Ability在abilites中;对应FA模型中主要配置文件config.json,需要时将对应的Ability配置在config.json中module/abilites。 2.Stage模型中卡片的创建需要的配置文件在resources/base/profile/form_config.json。 @@ -16,95 +16,10 @@ 5.Stage模型中ServiceExtensionAbility对应FA模型中ServiceAbility,具体实现差异详见方法注释。 -6.stage模型DataShareHelper对应FA模型中DataAbilityHelper 。 +6.Stage模型DataShareHelper对应FA模型中DataAbilityHelper 。 7.Stage模型从API Version9开始,通过context获取resourceManager对象的方式,再调用其内部获取资源的接口, 无需再导入 @ohos.resourceManager ;FA模型通过导入@ohos.resourceManager, 获取应用资源信息。 -#### FA对应Stage接口(FA——>Stage) - -**FeatureAbility——>AbilityContext、dataShare接口:** - -[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts):getWant——>MainAbility:want - -[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts):startAbilityForResult——>AbilityContextController:startAbilityForResult - -[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts):acquireDataAbilityHelper——>DataShareHelper:createDataShareHelper - -[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts):terminateSelfWithResult——>AbilityContextController:terminateSelfWithResult - -[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts):hasWindowFocus——>Stage模型不支持 - -[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts):terminateSelf——>AbilityContextController:terminateSelf - -[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts):getWindow——>WindowController:getTopWindow - -[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts):startServiceAbility——>AbilityContextController:startAbility - -[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts):connectService——>AbilityContextController:connectAbility - -[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts):disconnectService——>AbilityContextController:disconnectAbility - -**context-->AbilityContext、Bundle、Window、abilityAccessCtrl接口:** - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):getOrCreateLocalDir——>BundleController:entryDir - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):verifyPermission——>AbilityAccessCtrlController:verifyAccessToken - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):requestPermissionsFromUser——>AbilityContextController:requestPermissionsFromUser - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):getApplicationInfo——>BundleController:getApplicationInfo - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):getBundleName——>AbilityContextPage:abilityInfo.bundleName(属性) - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):getDisplayOrientation——>AbilityContextPage:config.direction(属性) - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):setDisplayOrientation——>WindowController:setPreferredOrientation - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):setShowOnLockScreen——>MainAbility:setShowOnLockScreen - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):setWakeUpScreen——>WindowController:setWakeUpScreen - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):getProcessInfo——>AbilityContextPage:abilityInfo.descriptionId;abilityInfo.name(属性) - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):getElementName——>BundleController:getAbilityInfo - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):getProcessName——>BundleController:process - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):getCallingBundle——>want.parameters(属性) - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):getCacheDir——>AbilityContextPage:cacheDir(属性) - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):getFilesDir——>AbilityContextPage:filesDir(属性) - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):getOrCreateDistributedDir——>AbilityContextPage:distributedFilesDir(属性) - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):getAppType——>BundleController:entityType - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):getHapModuleInfo——>AbilityContextPage:currentHapModuleInfo(属性) - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):getAppVersionInfo——>BundleController.getDispatcherVersion - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):getAbilityInfo——>AbilityContextPage:abilityInfo(属性) - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):getApplicationContext——>AbilityContextPage:getApplicationContext() - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):isUpdatingConfigurations——>Stage模型不支持 - -[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts):printDrawnCompleted——>Stage模型不支持 - -**particleAbility ——>ServiceExtensionContext、dataShare接口:** - - -[ParticleAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/ParticleAbilityHelper.ts) :startAbility——>ServiceExtContextController:startAbility - -[ParticleAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/ParticleAbilityHelper.ts) :connectAbility——>ServiceExtContextController:connectAbility - -[ParticleAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/ParticleAbilityHelper.ts) :disconnectAbility——>ServiceExtContextController:disconnectAbility - -[ParticleAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/ParticleAbilityHelper.ts):terminateSelf——>ServiceExtContextController:terminateSelf - -[ParticleAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/ParticleAbilityHelper.ts) :acquireDataAbilityHelper——>DataShareHelper:createDataShareHelper - ### 效果预览: |主页| |--------------------------------| @@ -149,7 +64,7 @@ entry/src/main/ets/ | |---MainAbility.ts |---pages | |---component -| | |---BookView.ets // 展示组价 +| | |---BookView.ets // 展示组件 | | |---IndexTitleBar.ets // 单个页面标题组件 | | |---PublicTitleBar.ets // 通用的标题组件 | | |---TitleBar.ets // 标题组件 @@ -212,7 +127,7 @@ Stage模型的设计基于如下三个出发点: ### 依赖 -FaModel升级StageModel,对应的FaModel参考[FaModel](../FaModel)。 +不涉及。 ### 约束与限制 diff --git a/code/SuperFeature/Widget/ArkTSCard/Calculator/README_zh.md b/code/SuperFeature/Widget/ArkTSCard/Calculator/README_zh.md index 23fa30ba5..c824b9d95 100644 --- a/code/SuperFeature/Widget/ArkTSCard/Calculator/README_zh.md +++ b/code/SuperFeature/Widget/ArkTSCard/Calculator/README_zh.md @@ -12,7 +12,7 @@ ### 使用说明 -1.部分设备的桌面不支持卡片,可以通过自己的开发卡片使用方,进行卡片的创建、更新和删除等操作。具体参考:[卡片使用方说明](../../FormLauncher/README_zh.md)。 +1.部分设备的桌面不支持卡片,可以通过自己的开发卡片使用方,进行卡片的创建、更新和删除等操作。 ### 工程目录 diff --git a/code/SuperFeature/Widget/ArkTSCard/CanvasGame/README_zh.md b/code/SuperFeature/Widget/ArkTSCard/CanvasGame/README_zh.md index debda6dd7..a75572240 100644 --- a/code/SuperFeature/Widget/ArkTSCard/CanvasGame/README_zh.md +++ b/code/SuperFeature/Widget/ArkTSCard/CanvasGame/README_zh.md @@ -16,7 +16,7 @@ 使用说明: -1.部分设备的桌面不支持卡片,可以通过自己开发的卡片使用方,进行卡片的创建、更新和删除等操作。具体参考:[卡片使用方说明](../FormLauncher/README_zh.md)。 +1.部分设备的桌面不支持卡片,可以通过自己开发的卡片使用方,进行卡片的创建、更新和删除等操作。 2.安装应用,并在桌面上长按本应用的桌面图标,长按后弹出选项列表。 diff --git a/code/SuperFeature/Widget/FormExtAbility/README.md b/code/SuperFeature/Widget/FormExtAbility/README.md index 0b02d0af2..3bf91dba9 100644 --- a/code/SuperFeature/Widget/FormExtAbility/README.md +++ b/code/SuperFeature/Widget/FormExtAbility/README.md @@ -6,7 +6,7 @@ This sample shows how to create and use the widget provider in the stage model. ### Usage -1. The home screens of some devices do not support widgets. You can create, update, and delete widgets by using your own widget host. For details, see [Widget Host](../FormLauncher/README.md). +1. The home screens of some devices do not support widgets. You can create, update, and delete widgets by using your own widget host. 2. The following figure shows the widget style. When the widget is updated, the temperature and time on the widget change. diff --git a/code/SystemFeature/ApplicationModels/Launcher/README.md b/code/SystemFeature/ApplicationModels/Launcher/README.md index 90f8292fa..4a2055697 100644 --- a/code/SystemFeature/ApplicationModels/Launcher/README.md +++ b/code/SystemFeature/ApplicationModels/Launcher/README.md @@ -58,6 +58,6 @@ This sample demonstrates a simple home screen app that provides the following fu 4. The permissions configured in this sample are at the system_basic or system_core level. Therefore, you must manually configure the signature for the corresponding permission level. For details about the permission level, see [Permission List](https://gitee.com/openharmony/docs/blob/master/en/application-dev/security/permission-list.md). For details about the configuration operation, see [Having Your App Automatically Signed](https://docs.openharmony.cn/pages/v3.2Beta/en/application-dev/security/hapsigntool-overview.md/). -5. This sample uses system APIs, and the Full SDK must be used for compilation. To use the Full SDK, you must manually obtain it from the mirror and switch to it in DevEco Studio. For details, see [Guide to Switching to Full SDK](https://gitee.com/openharmony/docs/blob/master/en/application-dev/quick-start/full-sdk-switch-guide.md). +5. This sample uses system APIs, and the Full SDK must be used for compilation. To use the Full SDK, you must manually obtain it from the mirror and switch to it in DevEco Studio. For details, see [Guide to Switching to Full SDK](https://docs.openharmony.cn/pages/v3.2/zh-cn/application-dev/quick-start/full-sdk-switch-guide.md/). 6. Currently, this sample supports the functions described in Steps 1-6 only. diff --git a/code/SystemFeature/ApplicationModels/Launcher/README_zh.md b/code/SystemFeature/ApplicationModels/Launcher/README_zh.md index b80515273..2dbbd99e8 100644 --- a/code/SystemFeature/ApplicationModels/Launcher/README_zh.md +++ b/code/SystemFeature/ApplicationModels/Launcher/README_zh.md @@ -54,7 +54,7 @@ ### 依赖 -Launcher通过卡片拉起橘子购物元服务需要依赖[ASOrangeShopping]( https://gitee.com/openharmony/applications_app_samples/tree/master/code/Solutions/Shopping/ASOrangeShopping ) +Launcher通过卡片拉起橘子购物元服务需要依赖[ASOrangeShopping]( https://gitee.com/openharmony/applications_app_samples/tree/samples_monthly_20230430/code/Solutions/Shopping/ASOrangeShopping ) ### 约束与限制 diff --git a/code/SystemFeature/ApplicationModels/MissionManager/README.md b/code/SystemFeature/ApplicationModels/MissionManager/README.md index ddf2b60b2..d72b607b7 100644 --- a/code/SystemFeature/ApplicationModels/MissionManager/README.md +++ b/code/SystemFeature/ApplicationModels/MissionManager/README.md @@ -28,7 +28,7 @@ ohos.permission.MANAGE_MISSIONS 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](https://gitee.com/openharmony/docs/blob/master/en/application-dev/quick-start/full-sdk-switch-guide.md). +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](https://docs.openharmony.cn/pages/v3.2/zh-cn/application-dev/quick-start/full-sdk-switch-guide.md/). 3. DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) must be used. diff --git a/code/SystemFeature/DeviceManagement/StorageStatistic/README.md b/code/SystemFeature/DeviceManagement/StorageStatistic/README.md index 6b034d4cb..fdf51ed37 100644 --- a/code/SystemFeature/DeviceManagement/StorageStatistic/README.md +++ b/code/SystemFeature/DeviceManagement/StorageStatistic/README.md @@ -39,6 +39,6 @@ N/A 3. DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) must be used. -4. This sample uses the **@ohos.bundle.innerBundleManager**, **@ohos.volumeManager**, and **@ohos.storageStatistics** system APIs. To use the full SDK, obtain it from a mirror site and switch to it in DevEco Studio. For details, see [Guide to Switching to Full SDK](https://gitee.com/openharmony/docs/blob/master/en/application-dev/quick-start/full-sdk-switch-guide.md). +4. This sample uses the **@ohos.bundle.innerBundleManager**, **@ohos.volumeManager**, and **@ohos.storageStatistics** system APIs. To use the full SDK, obtain it from a mirror site and switch to it in DevEco Studio. For details, see [Guide to Switching to Full SDK](https://docs.openharmony.cn/pages/v3.2/zh-cn/application-dev/quick-start/full-sdk-switch-guide.md/). 5. This example uses the **system_core** permissions (see [App Permission List](https://gitee.com/openharmony/docs/blob/master/en/application-dev/security/permission-list.md)). You need to [configure a high-level permission signature](https://docs.openharmony.cn/pages/v3.2Beta/zh-cn/application-dev/security/hapsigntool-overview.md). diff --git a/code/SystemFeature/WindowManagement/WindowExtAbility/README.md b/code/SystemFeature/WindowManagement/WindowExtAbility/README.md index 509d906a7..caf4b44dd 100644 --- a/code/SystemFeature/WindowManagement/WindowExtAbility/README.md +++ b/code/SystemFeature/WindowManagement/WindowExtAbility/README.md @@ -33,4 +33,5 @@ N/A 3. DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) must be used. -4. **WindowExtensionAbility** and **AbilityComponent** are system APIs and require the use of the Full SDK. To use the Full SDK, you must manually obtain it from the mirror and switch to it in DevEco Studio. For details, see [Guide to Switching to Full SDK](https://gitee.com/openharmony/docs/blob/master/en/application-dev/quick-start/full-sdk-switch-guide.md). +4. **WindowExtensionAbility** and **AbilityComponent** are system APIs and require the use of the Full SDK. To use the Full SDK, you must manually obtain it from the mirror and switch to it in DevEco Studio. For details, see [Guide to Switching to Full SDK](https://docs.openharmony.cn/pages/v3.2/zh-cn/application-dev/quick-start/full-sdk-switch-guide.md/). +