Skip to content

整理onShareAppMessage示例 #949

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: main
Choose a base branch
from
Prev Previous commit
Next Next commit
update Share示例的修改
  • Loading branch information
VincentWSZ committed Mar 12, 2025
commit dd24a0844e8e87be3b878655ff6d093a6d4f7c9d
6 changes: 6 additions & 0 deletions Demo/API_V2/Assets/API/Share/onShareMessage/onShareMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,12 @@ public void updateShareMenu()
}
}
);
WX.OnShow((res) =>
{
Debug.Log("Scene:" + res.scene);
Debug.Log("shareTicket:" + res.shareTicket);
Debug.Log("chatType:" + res.chatType);
});
}
public void onShareAppMessage()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ MonoBehaviour:
m_EditorClassIdentifier:
entryScriptTypeName: onShareMessage
entryName: "\u5206\u4EAB\u8F6C\u53D1"
entryAPI: "\u8F6C\u53D1\u76F8\u5173api\t"
entryDescription: "wx.updateShareMenu\n\u66F4\u65B0\u8F6C\u53D1\u5C5E\u6027\nwx.onShareAppMessage\n\u88AB\u52A8\u8F6C\u53D1\uFF0C\u53EF\u901A\u8FC7\u8FD4\u56DE\u81EA\u5B9A\u4E49\u8F6C\u53D1\u53C2\u6570\u6765\u4FEE\u6539\u8F6C\u53D1\u5361\u7247\u7684\u5185\u5BB9\uFF0C\u5426\u5219\u4F7F\u7528\u9ED8\u8BA4\u5185\u5BB9\u3002\nwx.ShareAppMessage\n\u4E3B\u52A8\u62C9\u8D77\u8F6C\u53D1\uFF0C\u8FDB\u5165\u9009\u62E9\u901A\u8BAF\u5F55\u754C\u9762\u3002\n"
entryAPI: updateShareMenu | onShareAppMessage | ShareAppMessage
entryDescription: "updateShareMenu \u66F4\u65B0\u8F6C\u53D1\u5C5E\u6027\uFF0C\u6DFB\u52A0onShow\u83B7\u53D6Shareticket\u3002\nonShareAppMessage\n\u88AB\u52A8\u8F6C\u53D1\uFF0C\u53EF\u901A\u8FC7\u8FD4\u56DE\u81EA\u5B9A\u4E49\u8F6C\u53D1\u53C2\u6570\u6765\u4FEE\u6539\u8F6C\u53D1\u5361\u7247\u7684\u5185\u5BB9\uFF0C\u5426\u5219\u4F7F\u7528\u9ED8\u8BA4\u5185\u5BB9\u3002\nShareAppMessage\n\u4E3B\u52A8\u62C9\u8D77\u8F6C\u53D1\uFF0C\u8FDB\u5165\u9009\u62E9\u901A\u8BAF\u5F55\u754C\u9762\u3002\n"
optionList: []
initialButtonText: "\u66F4\u65B0\u8F6C\u53D1\u5C5E\u6027"
extraButtonList:
Expand Down