delegateMethod | 委托方法。 |
bool 如果成功则返回 true,对于不支持广告标识符的平台则返回 false。在这种情况下,不会调用委托方法。
Request advertising ID for iOS and Windows Store.
using System; using UnityEngine;
public class SampleBehaviour : MonoBehaviour { public void Start() { Application.RequestAdvertisingIdentifierAsync( (string advertisingId, bool trackingEnabled, string error) => { Debug.Log("advertisingId " + advertisingId + " " + trackingEnabled + " " + error); } ); } }