Ejemplo n.º 1
0
        /// <summary>
        /// IOS14 请求广告权限
        /// </summary>
        /// <param name="gameObject"></param>
        public static void RequestAdvertisingAuthority(MonoBehaviour gameObject, Action <AdvertisingAuthority> callback)
        {
#if UNITY_IOS && !UNITY_EDITOR
            NativeiOS.SetAdvertisingAuthorityCallback(callback);
            NativeiOS.RequestAdvertisingAuthority(gameObject);
#endif
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 获取深度链接参数
        /// </summary>
        /// <param name="gameObject"></param>
        public static string GetDeeplinkData(MonoBehaviour gameObject)
        {
#if UNITY_ANDROID && !UNITY_EDITOR
            return(NativeAndroid.GetAndroidDeeplinkData(gameObject));
#elif UNITY_IOS && !UNITY_EDITOR
            return(NativeiOS.GetIOSDeeplinkData(gameObject));
#endif
            return("null");
        }
Ejemplo n.º 3
0
        /// <summary>
        /// 获取IOS设备系统版本
        /// </summary>
        /// <param name="gameObject"></param>
        public static void GetDeviceSystem(MonoBehaviour gameObject)
        {
#if UNITY_IOS && !UNITY_EDITOR
            NativeiOS.GetDeviceSystem(gameObject);
#endif
        }