上次更新时间:2026年10月5日
Sharing
Share the mini game to the user's friends or social channels through the platform share sheet.
TT.ShareAppMessage(param)
Shares the mini game message.
Signature
public static void ShareAppMessage(ShareAppMessageParam param)Parameters
Field | Type | Description |
|
| Share image URL. |
|
| Share subtitle. |
|
| Share template type. |
|
| Share title. |
|
| Return path. |
|
| Return query parameters. |
|
| Success callback. |
|
| Failure callback. |
|
| Completion callback. |
Example
TT.ShareAppMessage(new ShareAppMessageParam
{
Title = "Play with me",
ImageUrl = shareImageUrl,
Path = "pages/game",
Query = "from=share",
Success = () => Debug.Log("Share succeeded."),
Fail = error => Debug.LogError(error.ErrMsg),
Complete = () => Debug.Log("Share completed.")
});