Application.RequestAdvertisingIdentifierAsync

Cambiar al Manual
public static bool RequestAdvertisingIdentifierAsync (Application.AdvertisingIdentifierCallback delegateMethod);

Parámetros

delegateMethodMétodo Delegate.

Valor de retorno

bool Retorna true si es exitoso, o false para plataformas que no soportan Advertising Identifiers (identificadores de publicidad). En este caso, el método delegate no es invocado.

Descripción

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); } ); } }