26 lines
582 B
C#
26 lines
582 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Runtime.InteropServices;
|
|
using System.Text;
|
|
|
|
namespace Thousandto.Core.Base
|
|
{
|
|
#if UNITY_IPHONE && !UNITY_EDITOR
|
|
/// <summary>
|
|
/// 苹果设备硬盘信息
|
|
/// </summary>
|
|
public class IPhoneDiskInfo:IDiskInfo
|
|
{
|
|
[DllImport("__Internal")]
|
|
private static extern Double MemoryStat_GetFreeDiskspaceMByte();
|
|
|
|
//获取剩余硬盘空间大小
|
|
public double GetFreeDiskspace()
|
|
{
|
|
return MemoryStat_GetFreeDiskspaceMByte();
|
|
}
|
|
|
|
}
|
|
#endif
|
|
}
|