forked from hunterzonewu/unity-decompiled
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDevice.cs
More file actions
69 lines (60 loc) · 2.52 KB
/
Copy pathDevice.cs
File metadata and controls
69 lines (60 loc) · 2.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
// Decompiled with JetBrains decompiler
// Type: UnityEngine.iOS.Device
// Assembly: UnityEngine, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: A8FF7A2C-E4EE-4232-AB17-3FCABEC16496
// Assembly location: C:\Users\Blake\sandbox\unity\test-project\Library\UnityAssemblies\UnityEngine.dll
using System.Runtime.CompilerServices;
namespace UnityEngine.iOS
{
/// <summary>
/// <para>Interface into iOS specific functionality.</para>
/// </summary>
public sealed class Device
{
/// <summary>
/// <para>The generation of the device. (Read Only)</para>
/// </summary>
public static extern DeviceGeneration generation { [WrapperlessIcall, MethodImpl(MethodImplOptions.InternalCall)] get; }
/// <summary>
/// <para>iOS version.</para>
/// </summary>
public static extern string systemVersion { [WrapperlessIcall, MethodImpl(MethodImplOptions.InternalCall)] get; }
/// <summary>
/// <para>Vendor ID.</para>
/// </summary>
public static extern string vendorIdentifier { [WrapperlessIcall, MethodImpl(MethodImplOptions.InternalCall)] get; }
/// <summary>
/// <para>Advertising ID.</para>
/// </summary>
public static string advertisingIdentifier
{
get
{
string advertisingIdentifier = Device.GetAdvertisingIdentifier();
Application.InvokeOnAdvertisingIdentifierCallback(advertisingIdentifier, Device.advertisingTrackingEnabled);
return advertisingIdentifier;
}
}
/// <summary>
/// <para>Is advertising tracking enabled.</para>
/// </summary>
public static extern bool advertisingTrackingEnabled { [WrapperlessIcall, MethodImpl(MethodImplOptions.InternalCall)] get; }
/// <summary>
/// <para>Set file flag to be excluded from iCloud/iTunes backup.</para>
/// </summary>
/// <param name="path"></param>
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void SetNoBackupFlag(string path);
/// <summary>
/// <para>Reset "no backup" file flag: file will be synced with iCloud/iTunes backup and can be deleted by OS in low storage situations.</para>
/// </summary>
/// <param name="path"></param>
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
public static extern void ResetNoBackupFlag(string path);
[WrapperlessIcall]
[MethodImpl(MethodImplOptions.InternalCall)]
private static extern string GetAdvertisingIdentifier();
}
}