From: xue <2144439972@qq.com> Date: Mon, 29 Sep 2025 07:54:53 +0000 (+0800) Subject: 增加返回原任务接口 X-Git-Tag: V1.0.9_20251128_194606_LN~250^2~25^2~2^2~5 X-Git-Url: http://git.snicker.com.cn/css/static/gitweb.css?a=commitdiff_plain;h=3959f1c3beafc54b961382b32dd41d842f0e2230;p=mirrors%2FFD230.git 增加返回原任务接口 --- diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdMainView.h b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdMainView.h index 3f84df3ea..69133c41c 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdMainView.h +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdMainView.h @@ -63,6 +63,9 @@ namespace OHOS int16_t GetCurrentView() const; int16_t GetCurrentSubView() const; + + // 跳转到上一个界面 + bool GoBackToPreviousView(); void UpdateBatteryProcess(); @@ -77,6 +80,14 @@ namespace OHOS bool SwitchVideo(const char *uri); // 切换头发贴图 void SwitchHair(const char *hairPath); + // 获取是否开启屏保模式 + bool GetIsOpenScreenImageModel(void); + // 切换iconView图片接口 + void SwitchIconImage(const char *imagePath); + // 切换屏保模式接口 + bool OpenScreenImageModel(void); + // 关闭屏保模式接口 + bool CloseScreenImageModel(void); // 关机前关闭视频与相关资源 void CloseVideo(); // 打开遮罩(部分视图需要) @@ -129,6 +140,8 @@ namespace OHOS bool wasCharging{false}; bool notifiedChargeFull{false}; + bool IsOpenScreenImageModel_{false}; // 是否开启屏保模式 + // 各子界面对象指针 // OTA界面已独立为slice,不再需要此指针 ThunderBirdGuideView *g_pThunderBirdGuideView{nullptr}; diff --git a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdModel.h b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdModel.h index b160b3d02..61c42a4a8 100644 --- a/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdModel.h +++ b/code/sdk/application/wearable/ln/nativeapp/nativeui/thunderbird/include/ThunderBirdModel.h @@ -173,6 +173,12 @@ namespace OHOS void HandleChatStaminaChange(int chatLeft, const char* chatDesc, int flowLeft, const char* flowDesc, const char* qrcodeUrl); + // 屏保图片下载成功处理函数 + void HandleScreenImageDownloadSuccess(); + + // API错误处理函数 + void HandleApiError(const char* message); + // 表情切换函数 bool SwitchExpression(const char* eyeShape, const char* eyeColor);