我正在发送带有 openURL 的 cardAction,用户应该单击该按钮,按照所述 URL 中的说明进行操作,然后报告数据。我希望在用户单击按钮时(也就是打开 URL 时)显示一条消息。
根据我的测试,我只能选择 ImBack 或 OpenUrl。有没有办法在一个 CardAction 中同时完成这两项操作?
var card = new SigninCard()
{
Buttons = new List<CardAction>()
{
new CardAction()
{
Title = "Open a URL",
Type = ActionTypes.OpenUrl,
Value = this.myURL,
DisplayText = "I want to show text when I open myURL but this text doesn't show",
},
new CardAction()
{
Title = "Message Back",
Type = ActionTypes.ImBack,
Value = "MessageBackButtonClicked",
},
},
};
慕沐林林
相关分类