!2911 【Sample】修复changelog和readme失效链接

Merge pull request !2911 from 张宏/master
This commit is contained in:
openharmony_ci 2023-06-02 03:20:49 +00:00 committed by Gitee
commit b82a1a9479
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
14 changed files with 148 additions and 423 deletions

195
README.md
View File

@ -12,174 +12,81 @@ We provide a series of app samples to help you quickly get familiar with the API
## Content <a name="sectionMenu"></a> ## Content <a name="sectionMenu"></a>
- Basic - Basic
- [`Container`ArrayListArkTSAPI8](Basic/Container) - [`Screenshot`Screenshot ArkTSAPI9](code/SystemFeature/Media/Screenshot)
- [`Screenshot`Screenshot ArkTSAPI9](Basic/Screenshot)
- AppSample - AppSample
- [`Chat`Chat SampleArkTSAPI8](AppSample/Chat) - [`Chat`Chat SampleArkTSAPI9](code/Solutions/IM/Chat)
- [`Shopping`Shopping SampleArkTSAPI8](AppSample/Shopping)
- Account - Account
- [`AppAccountManager`App Account Manager ArkTSAPI8](Account/AppAccountManager) - [`AppAccountManager`App Account Manager ArkTSAPI9](code/BasicFeature/Security/AppAccountManager)
- [`DistributeAccount`Distributed AccountArkTSAPI8](Account/DistributeAccount)
- Communication - Communication
- [`RPC`RPC Connection ArkTSAPI8](Communication/RPC) - [`RPC`RPC Connection ArkTSAPI9](code/BasicFeature/Connectivity/RPC)
- [`Wlan`WLAN ArkTSAPI8](Communication/Wlan) - [`Wlan`WLAN ArkTSAPI9](code/SystemFeature/Connectivity/Wlan)
- ability - ability
- [`DMS`Distributed DemoArkTSAPI8](ability/DMS) - [`JsDistributedMusicPlayer`Distributed Music PlayerJSAPI10](code/SuperFeature/DistributedAppDev/JsDistributedMusicPlayer)
- [`JsDistributedMusicPlayer`Distributed Music PlayerJSAPI7](ability/JsDistributedMusicPlayer) - [`FormExtAbility`Stage FormArkTSAPI9](code/SuperFeature/Widget/FormExtAbility)
- [`DataAbility`Data AbilityArkTSAPI8](ability/DataAbility) - [`MissionManager`System Mission Manager(ArkTS)API9](code/SystemFeature/ApplicationModels/MissionManager)
- [`ServiceAbility`Service AbilityArkTSAPI8](ability/ServiceAbility)
- [`StageCallAbility`Stage Call AbilityArkTSAPI9](ability/StageCallAbility)
- [`FormAbility`Form Ability JSAPI8](ability/FormAbility)
- [`FormExtAbility`Stage FormArkTSAPI9](ability/FormExtAbility)
- [`FormLauncher`Form LauncherArkTSAPI8](ability/FormLauncher)
- [`ServiceExtAbility`StageExtAbility CreationArkTSAPI9](ability/ServiceExtAbility)
- [`DistributedGraffiti`Distributed GraffitiArkTSAPI8](ability/DistributedGraffiti)
- [`MissionManager`System Mission Manager(ArkTS)API9](ability/MissionManager)
- common - common
- [`AirQuality`Air QualityJSAPI8](common/AirQuality) - [`Clock`ClockJSAPI10](code/Solutions/Tools/JsClock)
- [`Clock`ClockJSAPI8](common/Clock) - [`DistributeCalc`Distributed CalculatorJSAPI10](code/SuperFeature/DistributedAppDev/DistributeCalc)
- [`DistributeCalc`Distributed CalculatorJSAPI7](common/DistributeCalc) - [`ResourceManager`Resource ManagerArkTSAPI9](code/BasicFeature/Internationalnation/ResourceManager)
- [`ECG`ECGJSAPI8](common/ECG)
- [`Notification`Botification ArkTSAPI8](common/Notification)
- [`ResourceManager`Resource ManagerArkTSAPI8](common/ResourceManager)
- [`Runninglock`RunninglockArkTSAPI8](common/Runninglock)
- [`Flashlight`FlashlightJSAPI8](common/Flashlight)
- [`JsHelloWorld`'Hello World'JSAPI8](common/JsHelloWorld) - [`JsHelloWorld`'Hello World'JSAPI8](common/JsHelloWorld)
- [`PowerManager`System Power ManagerArkTSAPI8](common/PowerManager) - [`PowerManager`System Power ManagerArkTSAPI9](code/SystemFeature/DeviceManagement/PowerManager)
- [`International`i18nArkTSAPI8](common/International) - [`International`i18nArkTSAPI9](code/SystemFeature/Internationalnation/International)
- data - data
- [`KvStore`Distributed DatabaseArkTSAPI8](data/Kvstore) - [`KvStore`Distributed DatabaseArkTSAPI9](code/SuperFeature/DistributedAppDev/Kvstore)
- [`LiteStorage`Lite StorageArkTSAPI8](data/LiteStorage) - [`DistributedRdb`Distributed RDBArkTSAPI9](code/SuperFeature/DistributedAppDev/DistributedRdb)
- [`Rdb`Relational DatabaseArkTSAPI8](data/Rdb) - [`Preferences`PreferenceArkTSAPI9](code/BasicFeature/DataManagement/Preferences)
- [`DDMQuery`DDMQueryArkTSAPI8](data/DDMQuery) - [`DistributedNote`Distributed Memo (ArkTS)API9](code/SuperFeature/DistributedAppDev/DistributedNote)
- [`DistributedRdb`Distributed RDBArkTSAPI8](data/DistributedRdb)
- [`Preferences`PreferenceArkTSAPI9](data/Preferences)
- [`DistributedNote`Distributed Memo (ArkTS)API9](data/DistributedNote)
- device - device
- [`DeviceManager`Device ManagerArkTSAPI8](device/DeviceManager) - [`Sensor`SensorArkTSAPI9](code/BasicFeature/DeviceManagement/Sensor)
- [`Sensor`SensorArkTSAPI8](device/Sensor) - [`Vibrator`VibratorArkTSAPI9](code/BasicFeature/DeviceManagement/Vibrator)
- [`Vibrator`VibratorArkTSAPI8](device/Vibrator) - [`DeviceUsageStatistics`Device Usage StatisticsArkTSAPI9](code/BasicFeature/DeviceUsageStatistics/DeviceUsageStatistics)
- [`DeviceUsageStatistics`Device Usage StatisticsArkTSAPI8](device/DeviceUsageStatistics) - [`Browser`BrowserArkTSAPI9](code/BasicFeature/Web/Browser)
- [`Browser`BrowserArkTSAPI9](device/Browser)
- Graphics - Graphics
- [`JsWebGL`WebGL(JS)API8](Graphics/JsWebGL) - [`Window`Window(ArkTS)API9](code/BasicFeature/WindowManagement/WindowManage)
- [`Window`Window(ArkTS)API9](Graphics/Window)
- media - media
- [`JsAudioPlayer`Audio PlayerJSAPI8](media/JsAudioPlayer) - [`Recorder`RecorderArkTSAPI9](code/BasicFeature/Media/Recorder)
- [`JsVideo`Video PlayerJSAPI8](media/JsVideo) - [`MultiMedia`Multi MediaArkTSAPI9](code/Solutions/Media/MultiMedia)
- [`Recorder`RecorderArkTSAPI8](media/Recorder)
- [`MultiMedia`Multi MediaArkTSAPI9](media/MultiMedia)
- [`VideoPlayer`Video PlayerArkTSAPI9](media/VideoPlayer)
- [`JsRecorder`RecorderJSAPI8](media/JSRecorder)
- DFX - DFX
- [`JsDotTest`Dot TestJSAPI8](DFX/JsDotTest) - [`FaultLogger`Fault LoggerArkTSAPI9](code/BasicFeature/DFX/FaultLogger)
- [`FaultLogger`Faulter LoggerArkTSAPI8](DFX/FaultLogger) - [`Logger`Logger(ArkTS)API9](code/BasicFeature/DFX/Logger)
- [`Logger`Logger(ArkTS)API9](DFX/Logger)
- Telephony - Telephony
- [`Call`CallArkTSAPI8](Telephony/Call) - [`Call`CallArkTSAPI9](code/BasicFeature/Telephony/Call)
- [`Message`MessageArkTSAPI8](Telephony/Message) - [`Message`MessageArkTSAPI9](code/BasicFeature/Telephony/Message)
- [`RadioTech`Radio TechArkTSAPI8](Telephony/RadioTech) - [`RadioTech`Radio TechArkTSAPI9](code/BasicFeature/Telephony/RadioTech)
- [`SimManager`SIM Card ManagerArkTSAPI8](Telephony/SimManager) - [`SimManager`SIM Card ManagerArkTSAPI9](code/BasicFeature/Telephony/SimManager)
- [`MobileNetwork`Cellular Network(ArkTS)API9](Telephony/MobileNetwork) - [`MobileNetwork`Cellular Network(ArkTS)API9](code/BasicFeature/Telephony/MobileNetwork)
- thread - thread
- [`JsWorker`Launch a workerJSAPI8](thread/JsWorker) - [`JsWorker`Launch a workerJSAPI9](code/LaunguageBaseClassLibrary/JsWorker)
- CompleteApps - CompleteApps
- [`KikaInput`Lite Input MethodJSAPI9](CompleteApps/KikaInput) - [`KikaInput`Lite Input MethodJSAPI10](code/Solutions/InputMethod/KikaInput)
- [`AstronautsGame`A GameC++](CompleteApps/AstronautsGame) - [`FlipClock`Flip ClockArkTSAPI9](code/Solutions/Tools/FlipClock)
- [`FlipClock`Flip ClockArkTSAPI8](CompleteApps/FlipClock)
- EngineeringCapability
- [`Npm`npm's usage (ArkTS)API9](EngineeringCapability/Npm)
- ETSUI - ETSUI
- [`Canvas`CanvasArkTSAPI8](ETSUI/Canvas) - [`Canvas`CanvasArkTSAPI9](code/UI/ArkTsComponentClollection/Canvas)
- [`CustomComponent`Custom ComponentArkTSAPI8](ETSUI/CustomComponent) - [`DefiningPageLayoutAndConnection`Defining Page Layout and ConnectionArkTSAPI9](code/UI/ArkTsComponentClollection/DefiningPageLayoutAndConnection)
- [`Process`Process ArkTSAPI8](ETSUI/Process) - [`Drag`Drag ArkTSAPI9](code/UI/ArkTsComponentClollection/Drag)
- [`BuildCommonView`Build Common View ArkTSAPI8](ETSUI/BuildCommonView) - [`MediaQuery`Media Query ArkTSAPI9](code/UI/ArkTsComponentClollection/MediaQuery)
- [`DefiningPageLayoutAndConnection`Defining Page Layout and ConnectionArkTSAPI8](ETSUI/DefiningPageLayoutAndConnection) - [`AdaptiveCapabilities`AdaptiveCapabilitiesArkTSAPI9](code/SuperFeature/MultiDeviceAppDev/AdaptiveCapabilities)
- [`Drag`Drag ArkTSAPI8](ETSUI/Drag) - [`Game2048`2048 GameArkTSAPI9](code/Solutions/Game/Game2048)
- [`Component`ArkTS Component Test DemoArkTSAPI8](ETSUI/Component) - [`Lottie`LottieArkTSAPI9](code/Solutions/Game/Lottie)
- [`ArkUIAnimation`AnimationArkTSAPI8](ETSUI/ArkUIAnimation)
- [`MediaQuery`Media Query ArkTSAPI8](ETSUI/MediaQuery)
- [`XComponent`XComponentArkTSAPI8](ETSUI/XComponent)
- [`MouseEvent`Mouse Event ArkTSAPI8](ETSUI/MouseEvent)
- [`Web`WebArkTSAPI8](ETSUI/Web)
- [`Gallery`Gallery ArkTSAPI8](ETSUI/Gallery)
- [`BringApp`Bring App ArkTSAPI8](ETSUI/BringApp)
- [`AdaptiveCapabilities`AdaptiveCapabilitiesArkTSAPI9](ETSUI/AdaptiveCapabilities)
- [`Game2048`2048 GameArkTSAPI9](ETSUI/Game2048)
- [`Lottie`LottieArkTSAPI8](ETSUI/Lottie)
- [`TransitionAnimation`Transition Animation (ArkTS)API9](ETSUI/TransitionAnimation)
- FileManager
- [`Environment`Environment ArkTSAPI8](FileManager/Environment)
- [`FileIo`File IOArkTSAPI8](FileManager/FileIo)
- Native
- [`NativeAPI`NativeAPIArkTSAPI8](Native/NativeAPI)
- Notification - Notification
- [`CommonEvent`Common EventArkTSAPI8](Notification/CommonEvent) - [`CustomCommonEvent`Custom Common EventArkTSAPI9](code/BasicFeature/Notification/CustomCommonEvent)
- [`Emitter`Emitter ArkTSAPI8](Notification/Emitter) - [`CustomEmitter`Custom Emitter ArkTSAPI9](code/BasicFeature/Notification/CustomEmitter)
- [`AlarmClock`Background Alarm Clock ArkTSAPI8](Notification/AlarmClock) - [`CustomNotification`Subscribe&Send Notification ArkTSAPI9](code/BasicFeature/Notification/CustomNotification)
- [`Notification`Subscribe&Send Notification ArkTSAPI9](Notification/Notification)
- Network - Network
- [`Http`http RequestArkTSAPI8](Network/Http) - [`Http`http RequestArkTSAPI9](code/BasicFeature/Connectivity/Http)
- [`Socket`SocketArkTSAPI8](Network/Socket) - [`Socket`SocketArkTSAPI9](code/BasicFeature/Connectivity/Socket)
- Preset - Preset
- [`Clock`ClockArkTSAPI9](Preset/Clock) - [`ArkTSClock`ClockArkTSAPI9](code/Solutions/Tools/ArkTSClock)
- [`FlashLight`Flash LightArkTSAPI8](Preset/FlashLight) - [`ArkTSDistributeCalc`Distributed CalculatorArkTSAPI9](code/SuperFeature/DistributedAppDev/ArkTSDistributedCalc)
- [`DistributeCalc`Distributed CalculatorArkTSAPI8](Preset/DistributeCalc) - [`ArkTSDistributedMusicPlayer`Distributed Music Player (ArkTS)API9](code/SuperFeature/DistributedAppDev/ArkTSDistributedMusicPlayer)
- [`AirQuality`Air Quality (ArkTS)API9](Preset/AirQuality)
- [`DistributedMusicPlayer`Distributed Music Player (ArkTS)API9](Preset/DistributedMusicPlayer)
- PackageManagement - PackageManagement
- [`ZipLib`zip&unzip(ArkTS)API9](PackageManagement/ZipLib) - [`ZipLib`zip&unzip(ArkTS)API9](code/LaunguageBaseClassLibrary/ZipLib)
- ResourcesSchedule - ResourcesSchedule
- [`Flybird`GameArkTSAPI9](ResourcesSchedule/Flybird) - [`Flybird`GameArkTSAPI9](code/BasicFeature/TaskManagement/Flybird)
- [`BackgroundTaskManager`Background Task ManagerArkTSAPI8](ResourcesSchedule/BackgroundTaskManager)
- UI - UI
- [`AtomicLayout`Atomic LayoutJSAPI8](UI/AtomicLayout) - [`AtomicLayout`Atomic LayoutJSAPI8](UI/AtomicLayout)
- [`Badge`BadgeJSAPI8](UI/Badge) - [`Badge`BadgeJSAPI8](UI/Badge)
- [`International`i18nJSAPI8](UI/International)
- [`JsFA`FA DemoJSAPI8](UI/JsFA)
- [`JsShopping`Shopping DemoJSAPI8](UI/JsShopping)
- [`JSMenu`MenuJSAPI8](UI/JSMenu)
- [`JSUICustomComponent`UI Custom ComponentJSAPI8](UI/JSUICustomComponent)
- [`JsAnimation`AnimationJSAPI8](UI/JsAnimation)
- [`JsAnimationStyle`Animation StyleJSAPI8](UI/JsAnimationStyle) - [`JsAnimationStyle`Animation StyleJSAPI8](UI/JsAnimationStyle)
- [`JsBasicComponents`Basic ComponentsJSAPI8](UI/JsBasicComponents)
- [`JsBrightness`BrightnessJSAPI8Full SDK](UI/JsBrightness)
- [`JsCanvas`CanvasJSAPI8](UI/JsCanvas)
- [`JsDevice`Device InfoJSAPI8](UI/JsDevice)
- [`JsDialog`DialogJSAPI8](UI/JsDialog)
- [`JsGrid`Grid LayoutJSAPI8](UI/JsGrid)
- [`JsList`ListJSAPI8](UI/JsList)
- [`JsPanel`PanelJSAPI8](UI/JsPanel)
- [`JsRouter`RouterJSAPI8](UI/JsRouter)
- [`JsSvg`SVGJSAPI8](UI/JsSvg)
- [`JsTimer`TimerJSAPI8](UI/JsTimer)
- [`Picker`Picker JSAPI8](UI/Picker)
- [`Popup`Popup JSAPI8](UI/Popup)
- [`RefreshContainer`Refresh ContainerJSAPI8](UI/RefreshContainer)
- [`Slider`SliderJSAPI8](UI/Slider)
- [`Stack`StackJSAPI8](UI/Stack)
- [`StepNavigator`Step NavigatorJSAPI8](UI/StepNavigator)
- [`Swiper`SwiperJSAPI8](UI/Swiper)
- [`Tabs`TabsJSAPI8](UI/Tabs)
- [`Toolbar`Toolbar JSAPI8](UI/Toolbar)
- [`chart`ChartJSAPI8](UI/chart)
- [`JsAdaptivePortalList`Adaptive Portal ListJSAPI8](UI/JsAdaptivePortalList)
- [`JsAdaptivePortalPage`Adaptive Portal PageJSAPI8](UI/JsAdaptivePortalPage)
- [`JsImage`Basic ImageJSAPI8](UI/JsImage)
- [`JsGallery`Gallery DemoJSAPI8](UI/JsGallery)
- [`JSComponments`Js Component JSAPI8](UI/JSComponments)
- [`JsUserRegistration`User RegistrationJSAPI8](UI/JsUserRegistration)
- [`JsAdaptiveServiceWidget`Adaptive Service WidgetJSAPI8](UI/JsAdaptiveServiceWidget)
- [`JsAnimator`AnimatorJSAPI8](UI/JsAnimator)
- Util
- [`UtilBase64Codec`Base64 CodecArkTSAPI8](Util/UtilBase64Codec)
- [`UtilScope`ScopeArkTSAPI8](Util/UtilScope)
- [`UtilStringCodec`String CodecArkTSAPI8](Util/UtilStringCodec)
- [`UtilLruBuffer`BufferArkTSAPI8](Util/UtilLruBuffer)
- [`UtilRationalNumber`Rational NumberArkTSAPI8](Util/UtilRationalNumber)
- [`UtilTypeCheck`Type CheckArkTSAPI8](Util/UtilTypeCheck)
- [`UtilUrlString`URL String Parser ArkTSAPI8](Util/UtilUrlString)
- [`XmlTextConvert`xml->text ConvertorArkTSAPI8](Util/XmlTextConvert)
## Usage<a name="section17988202503116"></a> ## Usage<a name="section17988202503116"></a>

View File

@ -417,10 +417,9 @@ code
## 使用方法<a name="section17988202503116"></a> ## 使用方法<a name="section17988202503116"></a>
1. 本仓默认下载全量工程代码,如需下载单个应用工程代码,请先下载并执行工具[【Windows版本】](DirCloneTool/CloneSpecifyDirForWindows.bat)、[【macOS版本】]()、[【Linux版本】]() 1. 将独立的应用示例工程导入DevEco Studio进行编译构建及运行调试。
2. 将独立的应用示例工程导入DevEco Studio进行编译构建及运行调试。 2. 部分应用示例中含有多个模块开发者可以选择对单个模块进行编译构建生成一个HAP应用安装包也可以对整个工程进行编译构建生成多个HAP应用安装包。
3. 部分应用示例中含有多个模块开发者可以选择对单个模块进行编译构建生成一个HAP应用安装包也可以对整个工程进行编译构建生成多个HAP应用安装包。 3. 安装运行后,即可在设备上查看应用示例运行效果,以及进行相关调试。
4. 安装运行后,即可在设备上查看应用示例运行效果,以及进行相关调试。
## Changlog<a name="section17988202503117"></a> ## Changlog<a name="section17988202503117"></a>

View File

@ -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.getMediaLibrary来获取MediaLibrary对象;
* 读取每个文件的数据使用MediaLibrary.getFileAssets读取满足条件的文件集合FetchFileResult然后调用FetchFileResult.getFirstObject(); * 读取每个文件的数据使用MediaLibrary.getFileAssets读取满足条件的文件集合FetchFileResult然后调用FetchFileResult.getFirstObject();
* 创建模拟文件使用MediaLibrary.getPublicDirectory()获取系统预定的目录然后使用MediaLibrary.createAsset(); * 创建模拟文件使用MediaLibrary.getPublicDirectory()获取系统预定的目录然后使用MediaLibrary.createAsset();
* 删除指定路径的文件使用MediaLibrary.deleteAsset(); * 删除指定路径的文件使用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) 。 * 获取预览图使用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) * 在Library模块中通过封装FileManager向外提供功能接口如MediaLibraryManager.getPixelMapByFileAsset(),源码参考:[FileManager.ts](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) * 如效果预览中的**图片列表**,读取指定类型的文件:在[FileList.ets](code/BasicFeature/FileManagement/FileManager/entry/src/main/ets/filemanager/pages/common/FileList.ets)
中调用FileManager.getFileAssets() 中调用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() 中调用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() 中调用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() * 获取缩略图:在[ThumbnailImage.ets](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()。 * 如效果预览中的**图片预览**,获取预览图:在[ImagePreview.ets](code/BasicFeature/FileManagement/FileManager/entry/src/main/ets/filemanager/pages/image/ImagePreview.ets) 中调用FileManager.getPixelMapByFileAsset()。
### 相关权限 ### 相关权限

View File

@ -1,113 +1,101 @@
# 5月5日-5月13日新增sample # 5月5日-5月13日新增sample
1.[`Shopping`购物示例应用eTSAPI8](AppSample/Shopping) 1.[`Chat`聊天示例应用ArkTSAPI9](code/Solutions/IM/Chat)
2.[`Chat`聊天示例应用eTSAPI8](AppSample/Chat) 2.[`Browser`浏览器ArkTSAPI9](code/BasicFeature/Web/Browser)
3.[`Browser`浏览器eTSAPI9](device/Browser) 3.[`DeviceUsageStatistics`设备使用信息统计ArkTSAPI9](code/BasicFeature/DeviceUsageStatistics/DeviceUsageStatistics)
4.[`DeviceUsageStatistics`设备使用信息统计eTSAPI8](device/DeviceUsageStatistics) 4.[`AdaptiveCapabilities`多设备自适应能力ArkTSAPI9](code/SuperFeature/MultiDeviceAppDev/AdaptiveCapabilities)
5.[`AdaptiveCapabilities`多设备自适应能力eTSAPI9](ETSUI/AdaptiveCapabilities) 5.[`Game2048`2048游戏ArkTSAPI9](code/Solutions/Game/Game2048)
6.[`Game2048`2048游戏eTSAPI9](ETSUI/Game2048)
7.[`JsAdaptiveServiceWidget`多设备自适应服务卡片JSAPI8](UI/JsAdaptiveServiceWidget)
# 5月13日-5月28日新增sample # 5月13日-5月28日新增sample
1.[`Window`:窗口(eTS)API9](Graphics/Window) 1.[`WindowManage`:窗口(ArkTS)API9](code/BasicFeature/WindowManagement/WindowManage)
2.[`Preferences`首选项eTSAPI9](data/Preferences) 2.[`Preferences`首选项ArkTSAPI9](code/BasicFeature/DataManagement/Preferences)
3.[`NativeAPI`NativeAPIeTSAPI8](Native/NativeAPI) 3.[`International`国际化ArkTSAPI9](code/SystemFeature/Internationalnation/International)
4.[`International`国际化eTSAPI8](common/International) 4.[`Lottie`LottieArkTSAPI9](code/Solutions/Game/Lottie)
5.[`Lottie`LottieeTSAPI8](ETSUI/Lottie) 5.[`FlipClock`: 时钟ArkTSAPI9](code/Solutions/Tools/FlipClock)
6.[`FlipClock`: 时钟eTSAPI8](CompleteApps/FlipClock)
7.[`JsAnimator`: 动画JsAPI8](UI/JsAnimator)
# 5月28日-6月6日新增sample # 5月28日-6月6日新增sample
1.[`DistributedNote`:分布式备忘录(eTS)API9](data/DistributedNote) 1.[`DistributedNote`:分布式备忘录(ArkTS)API9](code/SuperFeature/DistributedAppDev/DistributedNote)
2.[`Logger`:日志打印(eTS)API9](DFX/Logger) 2.[`Logger`:日志打印(ArkTS)API9](code/BasicFeature/DFX/Logger)
3.[`MobileNetwork`:蜂窝数据(eTS)API9](Telephony/MobileNetwork) 3.[`MobileNetwork`:蜂窝数据(ArkTS)API9](code/BasicFeature/Telephony/MobileNetwork)
# 6月6日-6月9日新增sample (总计26个分类146个sample) # 6月6日-6月9日新增sample (总计26个分类146个sample)
1.[`MissionManager`:系统任务管理(eTS)API9](ability/MissionManager) 1.[`MissionManager`:系统任务管理(ArkTS)API9](code/SystemFeature/ApplicationModels/MissionManager)
2.[`AirQuality`:空气质量(eTS)API9](Preset/AirQuality) 2.[`ZipLib`:压缩与解压(ArkTS)API9](code/LaunguageBaseClassLibrary/ZipLib)
3.[`TransitionAnimation`:转场动画(eTS)API9](ETSUI/TransitionAnimation) 3.[`ArkTSDistributedMusicPlayer`:分布式音乐(ArkTS)API9](code/SuperFeature/DistributedAppDev/ArkTSDistributedMusicPlayer)
4.[`ZipLib`:压缩与解压(eTS)API9](PackageManagement/ZipLib)
5.[`Npm`npm的使用(eTS)API9](EngineeringCapability/Npm)
6.[`DistributedMusicPlayer`:分布式音乐(eTS)API9](Preset/DistributedMusicPlayer)
# 6月9日-6月18日新增sample (总计27个分类155个sample) # 6月9日-6月18日新增sample (总计27个分类155个sample)
1.[`PatternLock`:图案密码锁组件(eTS)API9](ETSUI/PatternLock) 1.[`PatternLock`:图案密码锁组件(ArkTS)API9](code/Solutions/Tools/PatternLock)
2.[`UserAuth`:用户认证(eTS)API9](Safety/UserAuth) 2.[`Cipher`:加解密(ArkTS)API9](code/BasicFeature/Security/Cipher)
3.[`Cipher`:加解密(eTS)API8](Safety/Cipher) 3.[`Screen`:屏幕属性(ArkTS)API9](code/SystemFeature/DeviceManagement/Screen)
4.[`Screen`:屏幕属性(eTS)API9](device/Screen) 4.[`DistributedDataGobang`:分布式五子棋(ArkTS)API9](code/Solutions/Game/DistributedDataGobang)
5.[`Search`Search组件(eTS)API9](ETSUI/Search) 5.[`Image`:图片处理(ArkTS)API9](code/BasicFeature/Media/Image)
6.[`USBManager`USB管理(eTS)API8](device/USBManager) 6.[`AbilityAccessCtrl`:访问权限控制(ArkTS)API9](code/SystemFeature/Security/AbilityAccessCtrl)
7.[`DistributedDataGobang`:分布式五子棋(eTS)API9](data/DistributedDataGobang)
8.[`Image`:图片处理(eTS)API8](media/Image)
9.[`AbilityAccessCtrl`:访问权限控制(eTS)API8](Safety/AbilityAccessCtrl)
# 6月18日-6月24日新增sample总计27个分类161个sample # 6月18日-6月24日新增sample总计27个分类161个sample
1.[`WebSocket`WebSocketeTSAPI8](Network/WebSocket) 1.[`WebSocket`WebSocketArkTSAPI9](code/BasicFeature/Connectivity/WebSocket)
2.[`Bluetooth`:蓝牙(eTS)API9](device/Bluetooth) 2.[`Bluetooth`:蓝牙(ArkTS)API9](code/SystemFeature/Connectivity/Bluetooth)
3.[`GamePuzzle`:拼图(eTS)API9](media/GamePuzzle) 3.[`GamePuzzle`:拼图(ArkTS)API9](code/BasicFeature/Media/GamePuzzle)
4.[`UploadDownload`上传下载eTSAPI8](Network/UploadDownload) 4.[`UploadDownload`上传下载ArkTSAPI8](Network/UploadDownload)
5.[`KikaInput`中文输入法eTSAPI8](Native/KikaInput) 5.[`KikaInput`中文输入法ArkTSAPI10](code/Solutions/InputMethod/KikaInput)
6.[`Location`:位置服务(eTS)API9](device/Location) 6.[`Location`:位置服务(ArkTS)API9](code/BasicFeature/DeviceManagement/Location)
# 6月25日-7月7日新增sample总计28个分类164个sample # 6月25日-7月7日新增sample总计28个分类164个sample
1.[`Observer`Observer(eTS)API9](Telephony/Observer) 1.[`Observer`Observer(ArkTS)API9](code/BasicFeature/Telephony/Observer)
2.[`AdaptiveCapabilities`:多设备自适应能力(eTSAPI9](MultiDeviceAppDev/AdaptiveCapabilities) 2.[`AdaptiveCapabilities`:多设备自适应能力(ArkTSAPI9](code/SuperFeature/MultiDeviceAppDev/AdaptiveCapabilities)
3.[`JsAdaptiveCapabilities`多设备自适应能力JSAPI9](MultiDeviceAppDev/JsAdaptiveCapabilities) 3.[`JsAdaptiveCapabilities`多设备自适应能力JSAPI9](code/SuperFeature/MultiDeviceAppDev/JsAdaptiveCapabilities)
# 7月8日-7月14日新增Sample总计28个分类163个sample # 7月8日-7月14日新增Sample总计28个分类163个sample
1.删除[`AdaptiveCapabilities`:多设备自适应能力(eTSAPI9](ETSUI/AdaptiveCapabilities) 1.删除[`AdaptiveCapabilities`:多设备自适应能力(ArkTSAPI9](ArkTSUI/AdaptiveCapabilities)
# 7月14日-9月5日新增Sample总计28个分类174个sample # 7月14日-9月5日新增Sample总计28个分类174个sample
1.[`Share`分享eTSAPI9Full SDK](Share/Share) 1.[`CustomShare`自定义分享ArkTSAPI9Full SDK](code/BasicFeature/ApplicationModels/CustomShare)
2.[`WorkScheduler`延迟任务调度eTSAPI9](ResourcesSchedule/WorkScheduler) 2.[`WorkScheduler`延迟任务调度ArkTSAPI9](code/BasicFeature/TaskManagement/WorkScheduler)
3.[`UpgradePopup`自定义弹窗eTSAPI9](ETSUI/UpgradePopup) 3.[`Contact`ContactArkTSAPI9](code/BasicFeature/Telephony/Contact)
4.[`Search`Search组件eTSAPI9](ETSUI/Search) 4.[`ImageShow`图片显示ArkTSAPI9](code/BasicFeature/Media/ImageShow)
5.[`TransitionAnimation`转场动画eTSAPI9](ETSUI/TransitionAnimation) 5.[`Image`图片处理ArkTSAPI9](code/BasicFeature/Media/Image)
6.[`Contact`ContacteTSAPI8](Telephony/Contact) 6.[`Location`位置服务ArkTSAPI9](code/BasicFeature/DeviceManagement/Location)
7.[`ImageShow`图片显示eTSAPI9](media/ImageShow) 7.[`Launcher`仿桌面应用ArkTSAPI9Full SDK](code/SystemFeature/ApplicationModels/Launcher)
8.[`Image`图片处理eTSAPI8](media/Image) 8.[`WindowExtAbility`窗口扩展ArkTSAPI9Full SDK](code/SystemFeature/WindowManagement/WindowExtAbility)
9.[`Location`位置服务eTSAPI9](device/Location) 9.[`StageModel`Stage模型ArkTSAPI9Full SDK](code/BasicFeature/ApplicationModels/StageModel)
10.[`Launcher`仿桌面应用eTSAPI9Full SDK](ability/Launcher) 10.[`Http`数据请求ArkTSAPI9](code/BasicFeature/Connectivity/Http)
11.[`VideoPlayer`视频播放eTSAPI9Full SDK](media/VideoPlayer) 11.[`AppMarket`一多应用市场首页ArkTSAPI9](code/SuperFeature/MultiDeviceAppDev/AppMarket)
12.[`WindowExtAbility`窗口扩展eTSAPI9Full SDK](ability/WindowExtAbility) 12.[`Weather`一多天气ArkTSAPI9](code/SuperFeature/MultiDeviceAppDev/Weather)
13.[`FaModel`FA模型eTSAPI9](ability/FaModel)
14.[`StageModel`Stage模型eTSAPI9Full SDK](ability/StageModel)
15.[`GalleryForm`图库卡片eTSAPI9](ability/GalleryForm)
16.[`Http`数据请求eTSAPI9](Network/Http)
17.[`AppMarket`一多应用市场首页eTSAPI9](MultiDeviceAppDev/AppMarket)
18.[`Weather`一多天气eTSAPI9](MultiDeviceAppDev/Weather)
# 9月5日-9月16日新增Sample总计28个分类170个sample # 9月5日-9月16日新增Sample总计28个分类170个sample
新增Sample 新增Sample
1.[`HealthyDiet`健康饮食eTSAPI9](ETSUI/HealthyDiet) 1.[`HealthyDiet`健康饮食ArkTSAPI9](code/SuperFeature/MultiDeviceAppDev/HealthyDiet)
2.[`MusicAlbum`一多音乐专辑主页eTSAPI9](MultiDeviceAppDev/MusicAlbum) 2.[`MusicAlbum`一多音乐专辑主页ArkTSAPI9](code/SuperFeature/MultiDeviceAppDev/MusicAlbum)
3.[`Vegetable`一多蔬菜百科主页eTSAPI9](MultiDeviceAppDev/Vegetable) 3.[`MediaCollections`媒体管理合集ArkTSAPI9Full SDK](code/BasicFeature/FileManagement/MediaCollections)
4.[`MediaCollections`媒体管理合集eTSAPI9Full SDK](media/MediaCollections)
删除Sample 删除Sample
1.[`JsRecorder`:录音机(eTSAPI8Full SDK](media/JsRecorder) 1.[`JsRecorder`:录音机(ArkTSAPI8Full SDK](media/JsRecorder)
2.[`FlashLight`:手电筒(eTSAPI8Full SDK](Preset/FlashLight) 2.[`FlashLight`:手电筒(ArkTSAPI8Full SDK](Preset/FlashLight)
3.[`AirQuality`:空气质量(eTSAPI9](Preset/AirQuality) 3.[`AirQuality`:空气质量(ArkTSAPI9](Preset/AirQuality)
4.[`ECG`心率检测JSAPI8](common/ECG) 4.[`ECG`心率检测JSAPI8](common/ECG)
5.[`Flashlight`手电筒JSAPI8](common/Flashlight) 5.[`Flashlight`手电筒JSAPI8](common/Flashlight)
6.[`AirQuality`空气质量JSAPI8](common/AirQuality) 6.[`AirQuality`空气质量JSAPI8](common/AirQuality)
# 9月16日-10月21日新增Sample总计28个分类175个sample # 9月16日-10月21日新增Sample总计28个分类175个sample
1.[`AbilityConnectServiceExtension`Ability与ServiceExtensionAbility通信eTSAPI9Full SDK](ability/AbilityConnectServiceExtension) 1.[`AbilityConnectServiceExtension`Ability与ServiceExtensionAbility通信ArkTSAPI9Full SDK](code/BasicFeature/IDL/AbilityConnectServiceExtension)
2.[`CustomNotification`:自定义通知(eTSAPI9](Notification/CustomNotification) 2.[`CustomNotification`:自定义通知(ArkTSAPI9](code/BasicFeature/Notification/CustomNotification)
3.[`OrangeShopping`:购物示例应用(eTSAPI9](ETSUI/OrangeShopping) 3.[`OrangeShopping`:购物示例应用(ArkTSAPI9](code/Solutions/Shopping/OrangeShopping)
4.[`ComponentCollection`:组件集合(eTSAPI9](ETSUI/ComponentCollection) 4.[`ComponentCollection`:组件集合(ArkTSAPI9](code/UI/ArkTsComponentClollection/ComponentCollection)
5.[`JsComponentCollection`组件集合JSAPI9](UI/JsComponentCollection) 5.[`JsComponentCollection`组件集合JSAPI9](code/UI/JsComponentClollection/JsComponentCollection)
# 11月7日删除Sample总计27个分类173个sample # 11月7日删除Sample总计27个分类173个sample
1.[`NativeAPI`NativeAPIeTSAPI8](Native/NativeAPI) 1.[`NativeAPI`NativeAPIArkTSAPI8](Native/NativeAPI)
2.[`XComponent`XComponenteTSAPI9](ETSUI/XComponent) 2.[`XComponent`XComponentArkTSAPI9](ArkTSUI/XComponent)
# 11月11日删除sample总计27个分类171个sample # 11月11日删除sample总计27个分类171个sample
1.[`Notification`:通知(eTSAPI8](common/Notification) 1.[`Notification`:通知(ArkTSAPI8](common/Notification)
2.[`StageCallAbility`StageCallAbility的创建与使用eTSAPI9Full SDK](ability/StageCallAbility) 2.[`StageCallAbility`StageCallAbility的创建与使用ArkTSAPI9Full SDK](ability/StageCallAbility)
# 12月到1月新增Sample总计27个分类178个sample # 12月到1月新增Sample总计27个分类178个sample
1.[`FormGame`Stage模型卡片JS与C++通信(eTSAPI9](ability/FormGame) 1.[`FormGame`Stage模型卡片JS与C++通信(ArkTSAPI9](code/SuperFeature/Widget/FormGame)
2.[`ScreenDetector`:屏幕探测(eTSAPI9](device/ScreenDetector) 2.[`ScreenDetector`:屏幕探测(ArkTSAPI9](code/BasicFeature/DeviceManagement/ScreenDetector)
3.[`ScreenRecorder`:录屏(eTSAPI9Full SDK](media/ScreenRecorder) 3.[`ScreenRecorder`:录屏(ArkTSAPI9Full SDK](code/SystemFeature/Media/ScreenRecorder)
4.[`FileManager`:文件管理(eTSAPI9Full SDK](FileManager/FileManager) 4.[`FileManager`:文件管理(ArkTSAPI9Full SDK](code/BasicFeature/FileManagement/FileManager)
5.[`Settings`:一多设置典型页面(eTSAPI9](MultiDeviceAppDev/Settings) 5.[`Settings`:一多设置典型页面(ArkTSAPI9](code/SuperFeature/MultiDeviceAppDev/Settings)
6.[`QRCodeScan`:二维码扫描(eTSAPI9Full SDK](media/QRCodeScan) 6.[`QRCodeScan`:二维码扫描(ArkTSAPI9Full SDK](code/BasicFeature/Media/QRCodeScan)
7.[`RunJsInWeb`JS注入与执行eTSAPI8Full SDK](Web/RunJsInWeb) 7.[`RunJsInWeb`JS注入与执行ArkTSAPI9Full SDK](code/BasicFeature/Web/RunJsInWeb)

View File

@ -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**. 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 #### Usage
1. Touch **DataShareExtAbility**. The **DataShareExtAbility** page is displayed. 1. Touch **DataShareExtAbility**. The **DataShareExtAbility** page is displayed.
@ -163,12 +78,12 @@ N/A
### Dependency ### Dependency
The stage model is upgraded from the FA model. For details about the FA model, see [FA Model](../FaModel). N/A
### Constraints ### Constraints
1. This sample can only be run on standard-system devices. 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. 3. DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) must be used.

View File

@ -6,7 +6,7 @@
#### Stage和FA模型的区别 #### 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。 2.Stage模型中卡片的创建需要的配置文件在resources/base/profile/form_config.json。
@ -16,95 +16,10 @@
5.Stage模型中ServiceExtensionAbility对应FA模型中ServiceAbility具体实现差异详见方法注释。 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 获取应用资源信息。 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——>MainAbilitywant
[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts)startAbilityForResult——>AbilityContextControllerstartAbilityForResult
[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts)acquireDataAbilityHelper——>DataShareHelpercreateDataShareHelper
[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts)terminateSelfWithResult——>AbilityContextControllerterminateSelfWithResult
[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts)hasWindowFocus——>Stage模型不支持
[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts)terminateSelf——>AbilityContextControllerterminateSelf
[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts)getWindow——>WindowControllergetTopWindow
[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts)startServiceAbility——>AbilityContextControllerstartAbility
[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts)connectService——>AbilityContextControllerconnectAbility
[FeatureAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/FeatureAbilityHelper.ts)disconnectService——>AbilityContextControllerdisconnectAbility
**context-->AbilityContext、Bundle、Window、abilityAccessCtrl接口**
[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts)getOrCreateLocalDir——>BundleControllerentryDir
[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts)verifyPermission——>AbilityAccessCtrlControllerverifyAccessToken
[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts)requestPermissionsFromUser——>AbilityContextControllerrequestPermissionsFromUser
[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts)getApplicationInfo——>BundleControllergetApplicationInfo
[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts)getBundleName——>AbilityContextPageabilityInfo.bundleName属性
[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts)getDisplayOrientation——>AbilityContextPageconfig.direction属性
[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts)setDisplayOrientation——>WindowControllersetPreferredOrientation
[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts)setShowOnLockScreen——>MainAbilitysetShowOnLockScreen
[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts)setWakeUpScreen——>WindowControllersetWakeUpScreen
[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts)getProcessInfo——>AbilityContextPageabilityInfo.descriptionIdabilityInfo.name属性
[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts)getElementName——>BundleControllergetAbilityInfo
[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts)getProcessName——>BundleControllerprocess
[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts)getCallingBundle——>want.parameters属性
[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts)getCacheDir——>AbilityContextPagecacheDir属性
[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts)getFilesDir——>AbilityContextPagefilesDir属性
[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts)getOrCreateDistributedDir——>AbilityContextPagedistributedFilesDir属性
[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts)getAppType——>BundleControllerentityType
[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts)getHapModuleInfo——>AbilityContextPagecurrentHapModuleInfo属性
[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts)getAppVersionInfo——>BundleController.getDispatcherVersion
[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts)getAbilityInfo——>AbilityContextPageabilityInfo属性
[AppContext](../FaModel/entry/src/main/ets/MainAbility/feature/AppContext.ts)getApplicationContext——>AbilityContextPagegetApplicationContext()
[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——>ServiceExtContextControllerstartAbility
[ParticleAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/ParticleAbilityHelper.ts) connectAbility——>ServiceExtContextControllerconnectAbility
[ParticleAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/ParticleAbilityHelper.ts) disconnectAbility——>ServiceExtContextControllerdisconnectAbility
[ParticleAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/ParticleAbilityHelper.ts)terminateSelf——>ServiceExtContextControllerterminateSelf
[ParticleAbilityHelper](../FaModel/entry/src/main/ets/MainAbility/feature/ParticleAbilityHelper.ts) acquireDataAbilityHelper——>DataShareHelpercreateDataShareHelper
### 效果预览: ### 效果预览:
|主页| |主页|
|--------------------------------| |--------------------------------|
@ -149,7 +64,7 @@ entry/src/main/ets/
| |---MainAbility.ts | |---MainAbility.ts
|---pages |---pages
| |---component | |---component
| | |---BookView.ets // 展示组 | | |---BookView.ets // 展示组
| | |---IndexTitleBar.ets // 单个页面标题组件 | | |---IndexTitleBar.ets // 单个页面标题组件
| | |---PublicTitleBar.ets // 通用的标题组件 | | |---PublicTitleBar.ets // 通用的标题组件
| | |---TitleBar.ets // 标题组件 | | |---TitleBar.ets // 标题组件
@ -212,7 +127,7 @@ Stage模型的设计基于如下三个出发点
### 依赖 ### 依赖
FaModel升级StageModel对应的FaModel参考[FaModel](../FaModel) 不涉及
### 约束与限制 ### 约束与限制

View File

@ -12,7 +12,7 @@
### 使用说明 ### 使用说明
1.部分设备的桌面不支持卡片,可以通过自己的开发卡片使用方,进行卡片的创建、更新和删除等操作。具体参考:[卡片使用方说明](../../FormLauncher/README_zh.md)。 1.部分设备的桌面不支持卡片,可以通过自己的开发卡片使用方,进行卡片的创建、更新和删除等操作。
### 工程目录 ### 工程目录

View File

@ -16,7 +16,7 @@
使用说明: 使用说明:
1.部分设备的桌面不支持卡片,可以通过自己开发的卡片使用方,进行卡片的创建、更新和删除等操作。具体参考:[卡片使用方说明](../FormLauncher/README_zh.md)。 1.部分设备的桌面不支持卡片,可以通过自己开发的卡片使用方,进行卡片的创建、更新和删除等操作。
2.安装应用,并在桌面上长按本应用的桌面图标,长按后弹出选项列表。 2.安装应用,并在桌面上长按本应用的桌面图标,长按后弹出选项列表。

View File

@ -6,7 +6,7 @@ This sample shows how to create and use the widget provider in the stage model.
### Usage ### 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. 2. The following figure shows the widget style. When the widget is updated, the temperature and time on the widget change.

View File

@ -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/). 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. 6. Currently, this sample supports the functions described in Steps 1-6 only.

View File

@ -87,7 +87,7 @@ entry/src/main/ets/
### 依赖 ### 依赖
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 )
### 约束与限制 ### 约束与限制

View File

@ -28,7 +28,7 @@ ohos.permission.MANAGE_MISSIONS
1. This sample can only be run on standard-system devices. 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. 3. DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) must be used.

View File

@ -39,6 +39,6 @@ N/A
3. DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) must be used. 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). 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).

View File

@ -33,4 +33,5 @@ N/A
3. DevEco Studio 3.1 Canary1 (Build Version: 3.1.0.100) must be used. 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/).