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。

阅读 619
1 个回答