delegateMethod | Delegate method. |
bool In case of error returns false and the delegate method will not be invoked.
Request advertising ID for iOS, Android and Windows Store.
using System; using UnityEngine;
public class SampleMonoBehaviour : MonoBehaviour { public void InvokeOnAdvertisingIdentifierCallback(string advertisingId, bool trackingEnabled, string error) { Debug.Log (" InvokeOnAdvertisingIdentifierCallback " + advertisingId + " " + trackingEnabled + " " + error); }
public void Start() { Application.RequestAdvertisingIdentifierAsync ( (string advertisingId, bool trackingEnabled, string error) => { Debug.Log ("advertisingId " + advertisingId + " " + trackingEnabled + " " + error); } ); } }