/** * 设置归因回调 * */ 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 }
public FTDAttributeCallback(FtOnattributeChangedListener changedListener) : base("com.ftdsdk.www.api.FTAttributionListener") { this.changedListener = changedListener; }