WEARABLE_LOGE(WEARABLE_LOG_MODULE_APP, "Processing task reminder: %s", scheduleName);
}
}
+ bool ThunderBirdModel::SwitchExpression(const char* eyeShape, const char* eyeColor)
+ {
+ // 参数验证
+ if (eyeShape == nullptr || eyeColor == nullptr) {
+ return false;
+ }
+
+ // 构建表情文件路径:/user/res/video/CloseEyes/{eyeShape}/{eyeColor}.mp4
+ std::string expressionPath = "/user/res/video/CloseEyes/";
+ expressionPath += eyeShape;
+ expressionPath += "/";
+ expressionPath += eyeColor;
+ expressionPath += ".mp4";
+
+ // 通过图形服务调用 ThunderBirdMainView 的 SwitchVideo 函数
+ bool result = false;
+ GraphicService::GetInstance()->PostGraphicEvent(
+ [expressionPath, &result]() {
+ if (ThunderBirdMainView::GetInstance()) {
+ result = ThunderBirdMainView::GetInstance()->SwitchVideo(expressionPath.c_str());
+ }
+ });
+
+ return result;
+ }
}
\ No newline at end of file