HarmonyOS 实况窗的PickupLayout,无法显示descPic?

我在实况窗中,使用了 PickupLayout,并给 descPic 传递了一个 image.PixelMap 作为参数,结果运行报错:

Failed to start TicketGrabbingReminderLiveView: 401 Parameter error. The type of layoutData.descPic mustbe string [or the parameter length exceeds the limit].

我检查了图片的大小,原始大小为 12KB,没有超过文档里规定的 30KB。

阅读 612
1 个回答
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进