mirror of
https://gitee.com/openharmony/applications_app_samples
synced 2024-11-23 08:30:06 +00:00
!2911 【Sample】修复changelog和readme失效链接
Merge pull request !2911 from 张宏/master
This commit is contained in:
commit
b82a1a9479
195
README.md
195
README.md
@ -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`:ArrayList(ArkTS)(API8)](Basic/Container)
|
- [`Screenshot`:Screenshot (ArkTS)(API9)](code/SystemFeature/Media/Screenshot)
|
||||||
- [`Screenshot`:Screenshot (ArkTS)(API9)](Basic/Screenshot)
|
|
||||||
- AppSample
|
- AppSample
|
||||||
- [`Chat`:Chat Sample(ArkTS)(API8)](AppSample/Chat)
|
- [`Chat`:Chat Sample(ArkTS)(API9)](code/Solutions/IM/Chat)
|
||||||
- [`Shopping`:Shopping Sample(ArkTS)(API8)](AppSample/Shopping)
|
|
||||||
- Account
|
- Account
|
||||||
- [`AppAccountManager`:App Account Manager (ArkTS)(API8)](Account/AppAccountManager)
|
- [`AppAccountManager`:App Account Manager (ArkTS)(API9)](code/BasicFeature/Security/AppAccountManager)
|
||||||
- [`DistributeAccount`:Distributed Account(ArkTS)(API8)](Account/DistributeAccount)
|
|
||||||
- Communication
|
- Communication
|
||||||
- [`RPC`:RPC Connection (ArkTS)(API8)](Communication/RPC)
|
- [`RPC`:RPC Connection (ArkTS)(API9)](code/BasicFeature/Connectivity/RPC)
|
||||||
- [`Wlan`:WLAN (ArkTS)(API8)](Communication/Wlan)
|
- [`Wlan`:WLAN (ArkTS)(API9)](code/SystemFeature/Connectivity/Wlan)
|
||||||
- ability
|
- ability
|
||||||
- [`DMS`:Distributed Demo(ArkTS)(API8)](ability/DMS)
|
- [`JsDistributedMusicPlayer`:Distributed Music Player(JS)(API10)](code/SuperFeature/DistributedAppDev/JsDistributedMusicPlayer)
|
||||||
- [`JsDistributedMusicPlayer`:Distributed Music Player(JS)(API7)](ability/JsDistributedMusicPlayer)
|
- [`FormExtAbility`:Stage Form(ArkTS)(API9)](code/SuperFeature/Widget/FormExtAbility)
|
||||||
- [`DataAbility`:Data Ability(ArkTS)(API8)](ability/DataAbility)
|
- [`MissionManager`:System Mission Manager(ArkTS)(API9)](code/SystemFeature/ApplicationModels/MissionManager)
|
||||||
- [`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)
|
|
||||||
- common
|
- common
|
||||||
- [`AirQuality`:Air Quality(JS)(API8)](common/AirQuality)
|
- [`Clock`:Clock(JS)(API10)](code/Solutions/Tools/JsClock)
|
||||||
- [`Clock`:Clock(JS)(API8)](common/Clock)
|
- [`DistributeCalc`:Distributed Calculator(JS)(API10)](code/SuperFeature/DistributedAppDev/DistributeCalc)
|
||||||
- [`DistributeCalc`:Distributed Calculator(JS)(API7)](common/DistributeCalc)
|
- [`ResourceManager`:Resource Manager(ArkTS)(API9)](code/BasicFeature/Internationalnation/ResourceManager)
|
||||||
- [`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)
|
|
||||||
- [`JsHelloWorld`:'Hello World'(JS)(API8)](common/JsHelloWorld)
|
- [`JsHelloWorld`:'Hello World'(JS)(API8)](common/JsHelloWorld)
|
||||||
- [`PowerManager`:System Power Manager(ArkTS)(API8)](common/PowerManager)
|
- [`PowerManager`:System Power Manager(ArkTS)(API9)](code/SystemFeature/DeviceManagement/PowerManager)
|
||||||
- [`International`:i18n(ArkTS)(API8)](common/International)
|
- [`International`:i18n(ArkTS)(API9)](code/SystemFeature/Internationalnation/International)
|
||||||
- data
|
- data
|
||||||
- [`KvStore`:Distributed Database(ArkTS)(API8)](data/Kvstore)
|
- [`KvStore`:Distributed Database(ArkTS)(API9)](code/SuperFeature/DistributedAppDev/Kvstore)
|
||||||
- [`LiteStorage`:Lite Storage(ArkTS)(API8)](data/LiteStorage)
|
- [`DistributedRdb`:Distributed RDB(ArkTS)(API9)](code/SuperFeature/DistributedAppDev/DistributedRdb)
|
||||||
- [`Rdb`:Relational Database(ArkTS)(API8)](data/Rdb)
|
- [`Preferences`:Preference(ArkTS)(API9)](code/BasicFeature/DataManagement/Preferences)
|
||||||
- [`DDMQuery`:DDMQuery(ArkTS)(API8)](data/DDMQuery)
|
- [`DistributedNote`:Distributed Memo (ArkTS)(API9)](code/SuperFeature/DistributedAppDev/DistributedNote)
|
||||||
- [`DistributedRdb`:Distributed RDB(ArkTS)(API8)](data/DistributedRdb)
|
|
||||||
- [`Preferences`:Preference(ArkTS)(API9)](data/Preferences)
|
|
||||||
- [`DistributedNote`:Distributed Memo (ArkTS)(API9)](data/DistributedNote)
|
|
||||||
- device
|
- device
|
||||||
- [`DeviceManager`:Device Manager(ArkTS)(API8)](device/DeviceManager)
|
- [`Sensor`:Sensor(ArkTS)(API9)](code/BasicFeature/DeviceManagement/Sensor)
|
||||||
- [`Sensor`:Sensor(ArkTS)(API8)](device/Sensor)
|
- [`Vibrator`:Vibrator(ArkTS)(API9)](code/BasicFeature/DeviceManagement/Vibrator)
|
||||||
- [`Vibrator`:Vibrator(ArkTS)(API8)](device/Vibrator)
|
- [`DeviceUsageStatistics`:Device Usage Statistics(ArkTS)(API9)](code/BasicFeature/DeviceUsageStatistics/DeviceUsageStatistics)
|
||||||
- [`DeviceUsageStatistics`:Device Usage Statistics(ArkTS)(API8)](device/DeviceUsageStatistics)
|
- [`Browser`:Browser(ArkTS)(API9)](code/BasicFeature/Web/Browser)
|
||||||
- [`Browser`:Browser(ArkTS)(API9)](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 Player(JS)(API8)](media/JsAudioPlayer)
|
- [`Recorder`:Recorder(ArkTS)(API9)](code/BasicFeature/Media/Recorder)
|
||||||
- [`JsVideo`:Video Player(JS)(API8)](media/JsVideo)
|
- [`MultiMedia`:Multi Media(ArkTS)(API9)](code/Solutions/Media/MultiMedia)
|
||||||
- [`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)
|
|
||||||
- DFX
|
- DFX
|
||||||
- [`JsDotTest`:Dot Test(JS)(API8)](DFX/JsDotTest)
|
- [`FaultLogger`:Fault Logger(ArkTS)(API9)](code/BasicFeature/DFX/FaultLogger)
|
||||||
- [`FaultLogger`:Faulter Logger(ArkTS)(API8)](DFX/FaultLogger)
|
- [`Logger`:Logger(ArkTS)(API9)](code/BasicFeature/DFX/Logger)
|
||||||
- [`Logger`:Logger(ArkTS)(API9)](DFX/Logger)
|
|
||||||
- Telephony
|
- Telephony
|
||||||
- [`Call`:Call(ArkTS)(API8)](Telephony/Call)
|
- [`Call`:Call(ArkTS)(API9)](code/BasicFeature/Telephony/Call)
|
||||||
- [`Message`:Message(ArkTS)(API8)](Telephony/Message)
|
- [`Message`:Message(ArkTS)(API9)](code/BasicFeature/Telephony/Message)
|
||||||
- [`RadioTech`:Radio Tech(ArkTS)(API8)](Telephony/RadioTech)
|
- [`RadioTech`:Radio Tech(ArkTS)(API9)](code/BasicFeature/Telephony/RadioTech)
|
||||||
- [`SimManager`:SIM Card Manager(ArkTS)(API8)](Telephony/SimManager)
|
- [`SimManager`:SIM Card Manager(ArkTS)(API9)](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 worker(JS)(API8)](thread/JsWorker)
|
- [`JsWorker`:Launch a worker(JS)(API9)](code/LaunguageBaseClassLibrary/JsWorker)
|
||||||
- CompleteApps
|
- CompleteApps
|
||||||
- [`KikaInput`:Lite Input Method(JS)(API9)](CompleteApps/KikaInput)
|
- [`KikaInput`:Lite Input Method(JS)(API10)](code/Solutions/InputMethod/KikaInput)
|
||||||
- [`AstronautsGame`:A Game(C++)](CompleteApps/AstronautsGame)
|
- [`FlipClock`:Flip Clock(ArkTS)(API9)](code/Solutions/Tools/FlipClock)
|
||||||
- [`FlipClock`:Flip Clock(ArkTS)(API8)](CompleteApps/FlipClock)
|
|
||||||
- EngineeringCapability
|
|
||||||
- [`Npm`:npm's usage (ArkTS)(API9)](EngineeringCapability/Npm)
|
|
||||||
- ETSUI
|
- ETSUI
|
||||||
- [`Canvas`:Canvas(ArkTS)(API8)](ETSUI/Canvas)
|
- [`Canvas`:Canvas(ArkTS)(API9)](code/UI/ArkTsComponentClollection/Canvas)
|
||||||
- [`CustomComponent`:Custom Component(ArkTS)(API8)](ETSUI/CustomComponent)
|
- [`DefiningPageLayoutAndConnection`:Defining Page Layout and Connection(ArkTS)(API9)](code/UI/ArkTsComponentClollection/DefiningPageLayoutAndConnection)
|
||||||
- [`Process`:Process (ArkTS)(API8)](ETSUI/Process)
|
- [`Drag`:Drag (ArkTS)(API9)](code/UI/ArkTsComponentClollection/Drag)
|
||||||
- [`BuildCommonView`:Build Common View (ArkTS)(API8)](ETSUI/BuildCommonView)
|
- [`MediaQuery`:Media Query (ArkTS)(API9)](code/UI/ArkTsComponentClollection/MediaQuery)
|
||||||
- [`DefiningPageLayoutAndConnection`:Defining Page Layout and Connection(ArkTS)(API8)](ETSUI/DefiningPageLayoutAndConnection)
|
- [`AdaptiveCapabilities`:AdaptiveCapabilities(ArkTS)(API9)](code/SuperFeature/MultiDeviceAppDev/AdaptiveCapabilities)
|
||||||
- [`Drag`:Drag (ArkTS)(API8)](ETSUI/Drag)
|
- [`Game2048`:2048 Game(ArkTS)(API9)](code/Solutions/Game/Game2048)
|
||||||
- [`Component`:ArkTS Component Test Demo(ArkTS)(API8)](ETSUI/Component)
|
- [`Lottie`:Lottie(ArkTS)(API9)](code/Solutions/Game/Lottie)
|
||||||
- [`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)
|
|
||||||
- Notification
|
- Notification
|
||||||
- [`CommonEvent`:Common Event(ArkTS)(API8)](Notification/CommonEvent)
|
- [`CustomCommonEvent`:Custom Common Event(ArkTS)(API9)](code/BasicFeature/Notification/CustomCommonEvent)
|
||||||
- [`Emitter`:Emitter (ArkTS)(API8)](Notification/Emitter)
|
- [`CustomEmitter`:Custom Emitter (ArkTS)(API9)](code/BasicFeature/Notification/CustomEmitter)
|
||||||
- [`AlarmClock`:Background Alarm Clock (ArkTS)(API8)](Notification/AlarmClock)
|
- [`CustomNotification`:Subscribe&Send Notification (ArkTS)(API9)](code/BasicFeature/Notification/CustomNotification)
|
||||||
- [`Notification`:Subscribe&Send Notification (ArkTS)(API9)](Notification/Notification)
|
|
||||||
- Network
|
- Network
|
||||||
- [`Http`:http Request(ArkTS)(API8)](Network/Http)
|
- [`Http`:http Request(ArkTS)(API9)](code/BasicFeature/Connectivity/Http)
|
||||||
- [`Socket`:Socket(ArkTS)(API8)](Network/Socket)
|
- [`Socket`:Socket(ArkTS)(API9)](code/BasicFeature/Connectivity/Socket)
|
||||||
- Preset
|
- Preset
|
||||||
- [`Clock`:Clock(ArkTS)(API9)](Preset/Clock)
|
- [`ArkTSClock`:Clock(ArkTS)(API9)](code/Solutions/Tools/ArkTSClock)
|
||||||
- [`FlashLight`:Flash Light(ArkTS)(API8)](Preset/FlashLight)
|
- [`ArkTSDistributeCalc`:Distributed Calculator(ArkTS)(API9)](code/SuperFeature/DistributedAppDev/ArkTSDistributedCalc)
|
||||||
- [`DistributeCalc`:Distributed Calculator(ArkTS)(API8)](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`:Game(ArkTS)(API9)](ResourcesSchedule/Flybird)
|
- [`Flybird`:Game(ArkTS)(API9)](code/BasicFeature/TaskManagement/Flybird)
|
||||||
- [`BackgroundTaskManager`:Background Task Manager(ArkTS)(API8)](ResourcesSchedule/BackgroundTaskManager)
|
|
||||||
- UI
|
- UI
|
||||||
- [`AtomicLayout`:Atomic Layout(JS)(API8)](UI/AtomicLayout)
|
- [`AtomicLayout`:Atomic Layout(JS)(API8)](UI/AtomicLayout)
|
||||||
- [`Badge`:Badge(JS)(API8)](UI/Badge)
|
- [`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)
|
- [`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<a name="section17988202503116"></a>
|
## Usage<a name="section17988202503116"></a>
|
||||||
|
|
||||||
|
@ -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>
|
||||||
|
|
||||||
|
@ -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()。
|
||||||
|
|
||||||
### 相关权限
|
### 相关权限
|
||||||
|
|
||||||
|
154
changelog.md
154
changelog.md
@ -1,113 +1,101 @@
|
|||||||
# 5月5日-5月13日新增sample
|
# 5月5日-5月13日新增sample
|
||||||
1.[`Shopping`:购物示例应用(eTS)(API8)](AppSample/Shopping)
|
1.[`Chat`:聊天示例应用(ArkTS)(API9)](code/Solutions/IM/Chat)
|
||||||
2.[`Chat`:聊天示例应用(eTS)(API8)](AppSample/Chat)
|
2.[`Browser`:浏览器(ArkTS)(API9)](code/BasicFeature/Web/Browser)
|
||||||
3.[`Browser`:浏览器(eTS)(API9)](device/Browser)
|
3.[`DeviceUsageStatistics`:设备使用信息统计(ArkTS)(API9)](code/BasicFeature/DeviceUsageStatistics/DeviceUsageStatistics)
|
||||||
4.[`DeviceUsageStatistics`:设备使用信息统计(eTS)(API8)](device/DeviceUsageStatistics)
|
4.[`AdaptiveCapabilities`:多设备自适应能力(ArkTS)(API9)](code/SuperFeature/MultiDeviceAppDev/AdaptiveCapabilities)
|
||||||
5.[`AdaptiveCapabilities`:多设备自适应能力(eTS)(API9)](ETSUI/AdaptiveCapabilities)
|
5.[`Game2048`:2048游戏(ArkTS)(API9)](code/Solutions/Game/Game2048)
|
||||||
6.[`Game2048`:2048游戏(eTS)(API9)](ETSUI/Game2048)
|
|
||||||
7.[`JsAdaptiveServiceWidget`:多设备自适应服务卡片(JS)(API8)](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`:首选项(eTS)(API9)](data/Preferences)
|
2.[`Preferences`:首选项(ArkTS)(API9)](code/BasicFeature/DataManagement/Preferences)
|
||||||
3.[`NativeAPI`:NativeAPI(eTS)(API8)](Native/NativeAPI)
|
3.[`International`:国际化(ArkTS)(API9)](code/SystemFeature/Internationalnation/International)
|
||||||
4.[`International`:国际化(eTS)(API8)](common/International)
|
4.[`Lottie`:Lottie(ArkTS)(API9)](code/Solutions/Game/Lottie)
|
||||||
5.[`Lottie`:Lottie(eTS)(API8)](ETSUI/Lottie)
|
5.[`FlipClock`: 时钟(ArkTS)(API9)](code/Solutions/Tools/FlipClock)
|
||||||
6.[`FlipClock`: 时钟(eTS)(API8)](CompleteApps/FlipClock)
|
|
||||||
7.[`JsAnimator`: 动画(Js)(API8)](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`:WebSocket(eTS)(API8)](Network/WebSocket)
|
1.[`WebSocket`:WebSocket(ArkTS)(API9)](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`:上传下载(eTS)(API8)](Network/UploadDownload)
|
4.[`UploadDownload`:上传下载(ArkTS)(API8)](Network/UploadDownload)
|
||||||
5.[`KikaInput`:中文输入法(eTS)(API8)](Native/KikaInput)
|
5.[`KikaInput`:中文输入法(ArkTS)(API10)](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`:多设备自适应能力(eTS)(API9)](MultiDeviceAppDev/AdaptiveCapabilities)
|
2.[`AdaptiveCapabilities`:多设备自适应能力(ArkTS)(API9)](code/SuperFeature/MultiDeviceAppDev/AdaptiveCapabilities)
|
||||||
3.[`JsAdaptiveCapabilities`:多设备自适应能力(JS)(API9)](MultiDeviceAppDev/JsAdaptiveCapabilities)
|
3.[`JsAdaptiveCapabilities`:多设备自适应能力(JS)(API9)](code/SuperFeature/MultiDeviceAppDev/JsAdaptiveCapabilities)
|
||||||
|
|
||||||
# 7月8日-7月14日新增Sample(总计28个分类,163个sample)
|
# 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)
|
# 7月14日-9月5日新增Sample(总计28个分类,174个sample)
|
||||||
1.[`Share`:分享(eTS)(API9)(Full SDK)](Share/Share)
|
1.[`CustomShare`:自定义分享(ArkTS)(API9)(Full SDK)](code/BasicFeature/ApplicationModels/CustomShare)
|
||||||
2.[`WorkScheduler`:延迟任务调度(eTS)(API9)](ResourcesSchedule/WorkScheduler)
|
2.[`WorkScheduler`:延迟任务调度(ArkTS)(API9)](code/BasicFeature/TaskManagement/WorkScheduler)
|
||||||
3.[`UpgradePopup`:自定义弹窗(eTS)(API9)](ETSUI/UpgradePopup)
|
3.[`Contact`:Contact(ArkTS)(API9)](code/BasicFeature/Telephony/Contact)
|
||||||
4.[`Search`:Search组件(eTS)(API9)](ETSUI/Search)
|
4.[`ImageShow`:图片显示(ArkTS)(API9)](code/BasicFeature/Media/ImageShow)
|
||||||
5.[`TransitionAnimation`:转场动画(eTS)(API9)](ETSUI/TransitionAnimation)
|
5.[`Image`:图片处理(ArkTS)(API9)](code/BasicFeature/Media/Image)
|
||||||
6.[`Contact`:Contact(eTS)(API8)](Telephony/Contact)
|
6.[`Location`:位置服务(ArkTS)(API9)](code/BasicFeature/DeviceManagement/Location)
|
||||||
7.[`ImageShow`:图片显示(eTS)(API9)](media/ImageShow)
|
7.[`Launcher`:仿桌面应用(ArkTS)(API9)(Full SDK)](code/SystemFeature/ApplicationModels/Launcher)
|
||||||
8.[`Image`:图片处理(eTS)(API8)](media/Image)
|
8.[`WindowExtAbility`:窗口扩展(ArkTS)(API9)(Full SDK)](code/SystemFeature/WindowManagement/WindowExtAbility)
|
||||||
9.[`Location`:位置服务(eTS)(API9)](device/Location)
|
9.[`StageModel`:Stage模型(ArkTS)(API9)(Full SDK)](code/BasicFeature/ApplicationModels/StageModel)
|
||||||
10.[`Launcher`:仿桌面应用(eTS)(API9)(Full SDK)](ability/Launcher)
|
10.[`Http`:数据请求(ArkTS)(API9)](code/BasicFeature/Connectivity/Http)
|
||||||
11.[`VideoPlayer`:视频播放(eTS)(API9)(Full SDK)](media/VideoPlayer)
|
11.[`AppMarket`:一多应用市场首页(ArkTS)(API9)](code/SuperFeature/MultiDeviceAppDev/AppMarket)
|
||||||
12.[`WindowExtAbility`:窗口扩展(eTS)(API9)(Full SDK)](ability/WindowExtAbility)
|
12.[`Weather`:一多天气(ArkTS)(API9)](code/SuperFeature/MultiDeviceAppDev/Weather)
|
||||||
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)
|
|
||||||
|
|
||||||
# 9月5日-9月16日新增Sample(总计28个分类,170个sample)
|
# 9月5日-9月16日新增Sample(总计28个分类,170个sample)
|
||||||
|
|
||||||
新增Sample:
|
新增Sample:
|
||||||
1.[`HealthyDiet`:健康饮食(eTS)(API9)](ETSUI/HealthyDiet)
|
1.[`HealthyDiet`:健康饮食(ArkTS)(API9)](code/SuperFeature/MultiDeviceAppDev/HealthyDiet)
|
||||||
2.[`MusicAlbum`:一多音乐专辑主页(eTS)(API9)](MultiDeviceAppDev/MusicAlbum)
|
2.[`MusicAlbum`:一多音乐专辑主页(ArkTS)(API9)](code/SuperFeature/MultiDeviceAppDev/MusicAlbum)
|
||||||
3.[`Vegetable`:一多蔬菜百科主页(eTS)(API9)](MultiDeviceAppDev/Vegetable)
|
3.[`MediaCollections`:媒体管理合集(ArkTS)(API9)(Full SDK)](code/BasicFeature/FileManagement/MediaCollections)
|
||||||
4.[`MediaCollections`:媒体管理合集(eTS)(API9)(Full SDK)](media/MediaCollections)
|
|
||||||
|
|
||||||
删除Sample:
|
删除Sample:
|
||||||
1.[`JsRecorder`:录音机(eTS)(API8)(Full SDK)](media/JsRecorder)
|
1.[`JsRecorder`:录音机(ArkTS)(API8)(Full SDK)](media/JsRecorder)
|
||||||
2.[`FlashLight`:手电筒(eTS)(API8)(Full SDK)](Preset/FlashLight)
|
2.[`FlashLight`:手电筒(ArkTS)(API8)(Full SDK)](Preset/FlashLight)
|
||||||
3.[`AirQuality`:空气质量(eTS)(API9)](Preset/AirQuality)
|
3.[`AirQuality`:空气质量(ArkTS)(API9)](Preset/AirQuality)
|
||||||
4.[`ECG`:心率检测(JS)(API8)](common/ECG)
|
4.[`ECG`:心率检测(JS)(API8)](common/ECG)
|
||||||
5.[`Flashlight`:手电筒(JS)(API8)](common/Flashlight)
|
5.[`Flashlight`:手电筒(JS)(API8)](common/Flashlight)
|
||||||
6.[`AirQuality`:空气质量(JS)(API8)](common/AirQuality)
|
6.[`AirQuality`:空气质量(JS)(API8)](common/AirQuality)
|
||||||
|
|
||||||
# 9月16日-10月21日新增Sample(总计28个分类,175个sample)
|
# 9月16日-10月21日新增Sample(总计28个分类,175个sample)
|
||||||
1.[`AbilityConnectServiceExtension`:Ability与ServiceExtensionAbility通信(eTS)(API9)(Full SDK)](ability/AbilityConnectServiceExtension)
|
1.[`AbilityConnectServiceExtension`:Ability与ServiceExtensionAbility通信(ArkTS)(API9)(Full SDK)](code/BasicFeature/IDL/AbilityConnectServiceExtension)
|
||||||
2.[`CustomNotification`:自定义通知(eTS)(API9)](Notification/CustomNotification)
|
2.[`CustomNotification`:自定义通知(ArkTS)(API9)](code/BasicFeature/Notification/CustomNotification)
|
||||||
3.[`OrangeShopping`:购物示例应用(eTS)(API9)](ETSUI/OrangeShopping)
|
3.[`OrangeShopping`:购物示例应用(ArkTS)(API9)](code/Solutions/Shopping/OrangeShopping)
|
||||||
4.[`ComponentCollection`:组件集合(eTS)(API9)](ETSUI/ComponentCollection)
|
4.[`ComponentCollection`:组件集合(ArkTS)(API9)](code/UI/ArkTsComponentClollection/ComponentCollection)
|
||||||
5.[`JsComponentCollection`:组件集合(JS)(API9)](UI/JsComponentCollection)
|
5.[`JsComponentCollection`:组件集合(JS)(API9)](code/UI/JsComponentClollection/JsComponentCollection)
|
||||||
|
|
||||||
# 11月7日删除Sample(总计27个分类,173个sample)
|
# 11月7日删除Sample(总计27个分类,173个sample)
|
||||||
1.[`NativeAPI`:NativeAPI(eTS)(API8)](Native/NativeAPI)
|
1.[`NativeAPI`:NativeAPI(ArkTS)(API8)](Native/NativeAPI)
|
||||||
2.[`XComponent`:XComponent(eTS)(API9)](ETSUI/XComponent)
|
2.[`XComponent`:XComponent(ArkTS)(API9)](ArkTSUI/XComponent)
|
||||||
|
|
||||||
# 11月11日删除sample(总计27个分类,171个sample)
|
# 11月11日删除sample(总计27个分类,171个sample)
|
||||||
1.[`Notification`:通知(eTS)(API8)](common/Notification)
|
1.[`Notification`:通知(ArkTS)(API8)](common/Notification)
|
||||||
2.[`StageCallAbility`:StageCallAbility的创建与使用(eTS)(API9)(Full SDK)](ability/StageCallAbility)
|
2.[`StageCallAbility`:StageCallAbility的创建与使用(ArkTS)(API9)(Full SDK)](ability/StageCallAbility)
|
||||||
|
|
||||||
# 12月到1月新增Sample(总计27个分类,178个sample)
|
# 12月到1月新增Sample(总计27个分类,178个sample)
|
||||||
1.[`FormGame`:Stage模型卡片JS与C++通信(eTS)(API9)](ability/FormGame)
|
1.[`FormGame`:Stage模型卡片JS与C++通信(ArkTS)(API9)](code/SuperFeature/Widget/FormGame)
|
||||||
2.[`ScreenDetector`:屏幕探测(eTS)(API9)](device/ScreenDetector)
|
2.[`ScreenDetector`:屏幕探测(ArkTS)(API9)](code/BasicFeature/DeviceManagement/ScreenDetector)
|
||||||
3.[`ScreenRecorder`:录屏(eTS)(API9)(Full SDK)](media/ScreenRecorder)
|
3.[`ScreenRecorder`:录屏(ArkTS)(API9)(Full SDK)](code/SystemFeature/Media/ScreenRecorder)
|
||||||
4.[`FileManager`:文件管理(eTS)(API9)(Full SDK)](FileManager/FileManager)
|
4.[`FileManager`:文件管理(ArkTS)(API9)(Full SDK)](code/BasicFeature/FileManagement/FileManager)
|
||||||
5.[`Settings`:一多设置典型页面(eTS)(API9)](MultiDeviceAppDev/Settings)
|
5.[`Settings`:一多设置典型页面(ArkTS)(API9)](code/SuperFeature/MultiDeviceAppDev/Settings)
|
||||||
6.[`QRCodeScan`:二维码扫描(eTS)(API9)(Full SDK)](media/QRCodeScan)
|
6.[`QRCodeScan`:二维码扫描(ArkTS)(API9)(Full SDK)](code/BasicFeature/Media/QRCodeScan)
|
||||||
7.[`RunJsInWeb`:JS注入与执行(eTS)(API8)(Full SDK)](Web/RunJsInWeb)
|
7.[`RunJsInWeb`:JS注入与执行(ArkTS)(API9)(Full SDK)](code/BasicFeature/Web/RunJsInWeb)
|
@ -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.
|
||||||
|
@ -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——>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
|
| |---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)。
|
不涉及。
|
||||||
|
|
||||||
### 约束与限制
|
### 约束与限制
|
||||||
|
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
### 使用说明
|
### 使用说明
|
||||||
|
|
||||||
1.部分设备的桌面不支持卡片,可以通过自己的开发卡片使用方,进行卡片的创建、更新和删除等操作。具体参考:[卡片使用方说明](../../FormLauncher/README_zh.md)。
|
1.部分设备的桌面不支持卡片,可以通过自己的开发卡片使用方,进行卡片的创建、更新和删除等操作。
|
||||||
|
|
||||||
### 工程目录
|
### 工程目录
|
||||||
|
|
||||||
|
@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
使用说明:
|
使用说明:
|
||||||
|
|
||||||
1.部分设备的桌面不支持卡片,可以通过自己开发的卡片使用方,进行卡片的创建、更新和删除等操作。具体参考:[卡片使用方说明](../FormLauncher/README_zh.md)。
|
1.部分设备的桌面不支持卡片,可以通过自己开发的卡片使用方,进行卡片的创建、更新和删除等操作。
|
||||||
|
|
||||||
2.安装应用,并在桌面上长按本应用的桌面图标,长按后弹出选项列表。
|
2.安装应用,并在桌面上长按本应用的桌面图标,长按后弹出选项列表。
|
||||||
|
|
||||||
|
@ -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.
|
||||||
|
|
||||||
|
@ -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.
|
||||||
|
@ -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 )
|
||||||
|
|
||||||
### 约束与限制
|
### 约束与限制
|
||||||
|
|
||||||
|
@ -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.
|
||||||
|
|
||||||
|
@ -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).
|
||||||
|
@ -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/).
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user