Click or drag to resize

AndroidGalleryManager Class

This class plays a role to contact with native library through Android Java object.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          AndroidLocalGalleryPluginAndroidGalleryManager

Namespace:  AndroidLocalGalleryPlugin
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class AndroidGalleryManager : MonoBehaviour

The AndroidGalleryManager type exposes the following members.

Constructors
  NameDescription
Public methodAndroidGalleryManager
Initializes a new instance of the AndroidGalleryManager class
Top
Methods
  NameDescription
Public methodgetAllFolders(String, String, Int32, Int32, AndroidGalleryManageronMediaCallback)

Gets all folders.

This method automatically add STORAGE_EXTERNAL to get.

You will get the result through callback.

Public methodgetAllFolders(String, Int32, String, Int32, Int32, AndroidGalleryManageronMediaCallback)

Gets all folders.

This method automatically add STORAGE_EXTERNAL to get.

You will get the result through callback.

Added in v1.1.0

Public methodgetAllFolders(String, String, String, Int32, Int32, AndroidGalleryManageronMediaCallback)

Gets all folders.

This method automatically add STORAGE_EXTERNAL to get.

You will get the result through callback.

Public methodgetAllFolders(String, Int32, String, String, Int32, Int32, AndroidGalleryManageronMediaCallback)

Gets all folders.

This method automatically add STORAGE_EXTERNAL to get.

You will get the result through callback.

Added in v1.1.0

Public methodgetAllFolders(String, String, Int32, String, Int32, Int32, AndroidGalleryManageronMediaCallback)

Gets all folders.

This method automatically add STORAGE_EXTERNAL to get.

You will get the result through callback.

Added in v1.1.0

Public methodgetAllFolders(String, String, Int32, String, String, Int32, Int32, AndroidGalleryManageronMediaCallback)

Gets all folders.

This method automatically add STORAGE_EXTERNAL to get.

You will get the result through callback.

Added in v1.1.0

Public methodgetAllFoldersMaxCount(String, String, Int32, Int32, AndroidGalleryManageronMediaMaxCountCallback)

Gets all folders max count.

This method automatically add STORAGE_EXTERNAL to get.

You will get the result through callback.

Public methodgetAllFoldersMaxCount(String, Int32, String, Int32, Int32, AndroidGalleryManageronMediaMaxCountCallback)

Gets all folders max count.

This method automatically add STORAGE_EXTERNAL to get.

You will get the result through callback.

Added in v1.1.0

Public methodgetAllFoldersMaxCount(String, String, String, Int32, Int32, AndroidGalleryManageronMediaMaxCountCallback)

Gets all folders max count.

You will get the result through callback.

Public methodgetAllFoldersMaxCount(String, Int32, String, String, Int32, Int32, AndroidGalleryManageronMediaMaxCountCallback)

Gets all folders max count.

This method automatically add STORAGE_EXTERNAL to get.

You will get the result through callback.

Added in v1.1.0

Public methodgetAllFoldersMaxCount(String, String, Int32, String, Int32, Int32, AndroidGalleryManageronMediaMaxCountCallback)

Gets all folders max count.

You will get the result through callback.

Added in v1.1.0

Public methodgetAllFoldersMaxCount(String, String, Int32, String, String, Int32, Int32, AndroidGalleryManageronMediaMaxCountCallback)

Gets all folders max count.

You will get the result through callback.

Added in v1.1.0

Public methodgetFileRotation(Int32, String, Int32)

Gets the file rotation.

This method automatically add STORAGE_EXTERNAL to get.

Public methodgetFileRotation(String, Int32, String, Int32)

Gets the file rotation.

Public methodgetFiles(String, Int32, String, Int32, Int32, AndroidGalleryManageronMediaCallback)

Gets the files.

This method automatically add STORAGE_EXTERNAL to get.

You will get the result through callback.

Added in v1.1.0

Public methodgetFiles(String, Int32, String, String, Int32, Int32, AndroidGalleryManageronMediaCallback)

Gets the files.

This method automatically add STORAGE_EXTERNAL to get.

You will get the result through callback.

Added in v1.1.0

Public methodgetFiles(String, String, Int32, String, Int32, Int32, AndroidGalleryManageronMediaCallback)

Gets the files.

You will get the result through callback.

]

Added in v1.1.0

Public methodgetFiles(String, String, Int32, String, String, Int32, Int32, AndroidGalleryManageronMediaCallback)

Gets the files.

You will get the result through callback.

Added in v1.1.0

Public methodgetFilesMaxCount(String, Int32, String, Int32, Int32, AndroidGalleryManageronMediaMaxCountCallback)

Gets the files max count.

This method automatically add STORAGE_EXTERNAL to get.

You will get the result through callback.

Added in v1.1.0

Public methodgetFilesMaxCount(String, Int32, String, String, Int32, Int32, AndroidGalleryManageronMediaMaxCountCallback)

Gets the files max count.

This method automatically add STORAGE_EXTERNAL to get.

You will get the result through callback.

Added in v1.1.0

Public methodgetFilesMaxCount(String, String, Int32, String, Int32, Int32, AndroidGalleryManageronMediaMaxCountCallback)

Gets the files max count.

You will get the result through callback.

Added in v1.1.0

Public methodgetFilesMaxCount(String, String, Int32, String, String, Int32, Int32, AndroidGalleryManageronMediaMaxCountCallback)

Gets the files max count.

You will get the result through callback.

Added in v1.1.0

Public methodgetImageAndVideoFiles(String, String, Int32, Int32, AndroidGalleryManageronMediaCallback)

Gets the image and video files.

This method automatically add STORAGE_EXTERNAL to get.

You will get the result through callback.

Public methodgetImageAndVideoFiles(String, String, String, Int32, Int32, AndroidGalleryManageronMediaCallback)

Gets the image and video files.

You will get the result through callback.

Public methodgetImageAndVideoFilesMaxCount(String, String, Int32, Int32, AndroidGalleryManageronMediaMaxCountCallback)

Gets the image and video files max count.

This method automatically add STORAGE_EXTERNAL to get.

You will get the result through callback.

Public methodgetImageAndVideoFilesMaxCount(String, String, String, Int32, Int32, AndroidGalleryManageronMediaMaxCountCallback)

Gets the image and video files max count.

You will get the result through callback.

Public methodgetImageFiles(String, String, Int32, Int32, AndroidGalleryManageronMediaCallback)

Gets the image files.

This method automatically add STORAGE_EXTERNAL to get.

You will get the result through callback.

Public methodgetImageFiles(String, String, String, Int32, Int32, AndroidGalleryManageronMediaCallback)

Gets the image files.

You will get the result through callback.

Public methodgetImageFilesMaxCount(String, String, Int32, Int32, AndroidGalleryManageronMediaMaxCountCallback)

Gets the image files max count.

This method automatically add STORAGE_EXTERNAL to get.

You will get the result through callback.

Public methodgetImageFilesMaxCount(String, String, String, Int32, Int32, AndroidGalleryManageronMediaMaxCountCallback)

Gets the image files max count.

You will get the result through callback.

Public methodgetThumbnail

Gets the thumbnail data as the byte array.

ByteBuffer byteBuffer = ByteBuffer.allocate(bitmap.getByteCount());bitmap.copyPixelsToBuffer(byteBuffer);return byteBuffer.array();
Public methodgetThumbnailPath(Int32, Int32, Int32, Int32, AndroidGalleryManageronThumbCallback)

Gets the thumbnail path.

You don't need to specify the storage because thumbnail is stored in the external storage.

Public methodgetThumbnailPath(Int32, Int32, Int32, Int32, AndroidGalleryManageronThumbCallback)

Gets the thumbnail path array.

You don't need to specify the storage because thumbnail is stored in the external storage.

Public methodgetVideoFiles(String, String, Int32, Int32, AndroidGalleryManageronMediaCallback)

Gets the video files.

This method automatically add STORAGE_EXTERNAL to get.

You will get the result through callback.

Public methodgetVideoFiles(String, String, String, Int32, Int32, AndroidGalleryManageronMediaCallback)

Gets the video files.

You will get the result through callback.

Public methodgetVideoFilesMaxCount(String, String, Int32, Int32, AndroidGalleryManageronMediaMaxCountCallback)

Gets the video files max count.

This method automatically add STORAGE_EXTERNAL to get.

You will get the result through callback.

Public methodgetVideoFilesMaxCount(String, String, String, Int32, Int32, AndroidGalleryManageronMediaMaxCountCallback)

Gets the video files max count.

You will get the result through callback.

Top
Fields
  NameDescription
Public fieldSTORAGE_EXTERNAL

All Android devices have two file storage areas.

Virtual external storage is common on modern Android phones.

Public fieldSTORAGE_INTERNAL

All Android devices have two file storage areas.

Internal storage is not common on modern Android phones.

We guess that it will never be used in general project.

Top
See Also