A static class in Root.Township, Alta.Utilities.
Android-only helpers that call Java through AndroidJavaObject. They do nothing useful on the PC server.
Fields
2 private and internal fields
| Member | What it is |
|---|
private static AndroidJavaObject _activity | Backing field for Activity. |
private const string MediaStoreImagesMediaClass | Java class name of MediaStore.Images.Media, used to insert images. |
Properties
1 private and internal property
| Member | What it is |
|---|
private static AndroidJavaObject Activity { get; } | The current Unity Android activity, fetched from UnityPlayer once and cached. |
Methods
| Member | What it is |
|---|
static string SaveImageToGallery(Texture2D texture2D, string title, string description) | Saves a texture to the Android photo gallery with a title and description. Returns the new image's URI string. |
1 private and internal method
| Member | What it is |
|---|
private static AndroidJavaObject Texture2DToAndroidBitmap(Texture2D texture2D) | Encodes the texture as PNG and decodes it into an Android Bitmap. |