BeerDrinkin.iOS.Services.DeviceInfoService.GetFreeSpace C# (CSharp) Method

GetFreeSpace() static private method

static private GetFreeSpace ( ) : long
return long
        static long GetFreeSpace()
        {
            var path = Environment.GetFolderPath(Environment.SpecialFolder.Personal);
            NSDictionary dictionary = NSFileManager.DefaultManager.GetFileSystemAttributes(path);
            var number = (NSNumber)dictionary.ObjectForKey(NSObject.FromObject(NSFileManager.SystemFreeSize));
            var freeBytes = number.UInt64Value;

            return (long)freeBytes;
        }
    }