예제 #1
0
    /**
     * 设置归因回调
     * */
    public void setOnAttributeListener(FtOnattributeChangedListener changedListener)
    {
        Debug.Log("setOnAttributeListener success.");
        if (!checkAvailable())
        {
            return;
        }
        FTDSdk.changedListener = changedListener;

#if UNITY_IOS
        // No action, iOS SDK is subscribed to iOS lifecycle notifications.
#elif UNITY_ANDROID
        FTDAndroid.setOnAttributeListener(new FTDAttributeCallback(changedListener));
#else
        Debug.Log(errorMsgPlatform);
#endif
    }
예제 #2
0
 public FTDAttributeCallback(FtOnattributeChangedListener changedListener) : base("com.ftdsdk.www.api.FTAttributionListener")
 {
     this.changedListener = changedListener;
 }