分享接口
This commit is contained in:
parent
e65c46e345
commit
92483a944b
|
|
@ -3,6 +3,7 @@ using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using Touka;
|
using Touka;
|
||||||
|
using WeChatWASM;
|
||||||
|
|
||||||
public class TKGSDKManager : TKGSingleton<TKGSDKManager>
|
public class TKGSDKManager : TKGSingleton<TKGSDKManager>
|
||||||
{
|
{
|
||||||
|
|
@ -596,7 +597,45 @@ public class TKGSDKManager : TKGSingleton<TKGSDKManager>
|
||||||
|
|
||||||
#region h5
|
#region h5
|
||||||
|
|
||||||
|
public void ShowShareMenu()
|
||||||
|
{
|
||||||
|
ShowShareMenuOption ssmo = new ShowShareMenuOption();
|
||||||
|
ssmo.menus = new string[] { "shareAppMessage", "shareTimeline" };
|
||||||
|
WX.ShowShareMenu(ssmo);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void HideShareMenu()
|
||||||
|
{
|
||||||
|
HideShareMenuOption hsmo = new HideShareMenuOption();
|
||||||
|
hsmo.menus = new string[] { "shareAppMessage", "shareTimeline" };
|
||||||
|
WX.HideShareMenu(hsmo);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ShareAppMessageOriginImg()
|
||||||
|
{
|
||||||
|
ShareAppMessageOption samo = new ShareAppMessageOption();
|
||||||
|
samo.title = "高智商玩家的选择,能过20关的都不是一般人";
|
||||||
|
//samo.imageUrlId = "这是图片路径ID";
|
||||||
|
//samo.path ="独立分包路径";
|
||||||
|
WX.ShareAppMessage(samo);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ShareAppMessage()
|
||||||
|
{
|
||||||
|
ShareAppMessageOption samo = new ShareAppMessageOption();
|
||||||
|
samo.title = "靠声音过关的游戏,有点意思~";
|
||||||
|
samo.imageUrl = "https://touka-pkg.oss-cn-beijing.aliyuncs.com/Temp/chicken_webgl/ShareImg/ShareImg01.png";
|
||||||
|
//samo.imageUrlId = "这是图片路径ID";
|
||||||
|
//samo.path ="独立分包路径";
|
||||||
|
WX.ShareAppMessage(samo);
|
||||||
|
}
|
||||||
|
|
||||||
|
public void ShowShareImageMenu()
|
||||||
|
{
|
||||||
|
ShowShareImageMenuOption ssimo = new ShowShareImageMenuOption();
|
||||||
|
ssimo.path = "Share.png";
|
||||||
|
WX.ShowShareImageMenu(ssimo);
|
||||||
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
Loading…
Reference in New Issue