17 using System.Collections.Generic;
19 using Android.Content;
32 private const string ExpansionFilesPath =
"/Android/obb/";
36 #region Public Methods and Operators
55 var ret =
new List<string>();
57 if (Environment.ExternalStorageState.Equals(Environment.MediaMounted))
59 string packageName = ctx.PackageName;
62 string expPath = Environment.ExternalStorageDirectory + ExpansionFilesPath + packageName;
65 if (Directory.Exists(expPath))
67 string main = Path.Combine(expPath, string.Format(
"main.{0}.{1}.obb", mainVersion, packageName));
68 string patch = Path.Combine(expPath, string.Format(
"patch.{0}.{1}.obb", mainVersion, packageName));
70 if (mainVersion > 0 &&
File.Exists(main))
75 if (patchVersion > 0 &&
File.Exists(patch))
103 return new ExpansionZipFile(GetApkExpansionFiles(ctx, mainVersion, patchVersion));
static ExpansionZipFile GetApkExpansionZipFile(Context ctx, int mainVersion, int patchVersion)
Gets a ExpansionZipFile that contains a list of all the files in the combined main and patch obb pack...
static IEnumerable< string > GetApkExpansionFiles(Context ctx, int mainVersion, int patchVersion)
The get apk expansion files.
The apk expansion support.
Compression
Compression method enumeration