[A] facebook share
This commit is contained in:
@@ -46,6 +46,10 @@ public class SDKTest : MonoBehaviour
|
||||
[SerializeField]
|
||||
private Button _signoutBtn;
|
||||
[SerializeField]
|
||||
private Button _fbShareLinkBtn;
|
||||
[SerializeField]
|
||||
private Button _mfbShareLinkBtn;
|
||||
[SerializeField]
|
||||
private Text _messageTxt;
|
||||
|
||||
void Start()
|
||||
@@ -58,8 +62,8 @@ public class SDKTest : MonoBehaviour
|
||||
Debug.Log("SDKTest Start");
|
||||
//===============================================================================
|
||||
//====================== Test Server ===========================
|
||||
UnityBridgeFunc.UnityResetServerUrl("https://128-hwsfsdk-sdk-test01.qijihdhk.com");
|
||||
config.Set("AGG_SERVER", "https://128-hwsfsdk-sdk-test01.qijihdhk.com");
|
||||
//UnityBridgeFunc.UnityResetServerUrl("https://128-hwsfsdk-sdk-test01.qijihdhk.com");
|
||||
//config.Set("AGG_SERVER", "https://128-hwsfsdk-sdk-test01.qijihdhk.com");
|
||||
//====================== Test Server ===========================
|
||||
//===============================================================================
|
||||
//
|
||||
@@ -83,6 +87,8 @@ public class SDKTest : MonoBehaviour
|
||||
_gaAppMaxBtn.onClick.AddListener(OnAppMaxBtn);
|
||||
_ATTBtn.onClick.AddListener(OnATTBtn);
|
||||
_signoutBtn.onClick.AddListener(OnSignoutBtn);
|
||||
_fbShareLinkBtn.onClick.AddListener(OnFBShareLinkBtn);
|
||||
_mfbShareLinkBtn.onClick.AddListener(OnMessengerShareLinkBtn);
|
||||
Debug.Log("SDKTest Started");
|
||||
}
|
||||
|
||||
@@ -344,6 +350,16 @@ eb68f93a08156e04
|
||||
TYSdkFacade.Instance.Signout();
|
||||
}
|
||||
|
||||
private void OnFBShareLinkBtn()
|
||||
{
|
||||
UnityBridgeFunc.FBShareLink("title", "content", "https://www.baidu.com");
|
||||
}
|
||||
|
||||
private void OnMessengerShareLinkBtn()
|
||||
{
|
||||
UnityBridgeFunc.MessengerShareLink("title", "content", "https://www.baidu.com");
|
||||
}
|
||||
|
||||
/*
|
||||
public void OnTaBtn()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user