Package 

Class PictureResult

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public class PictureResult.Stub

      A result stub, for internal use only.

    • Method Summary

      Modifier and Type Method Description
      boolean isSnapshot() Returns whether this result comes from a snapshot.
      Location getLocation() Returns geographic information for this picture, if any.If it was set, it is also present in the file metadata.
      int getRotation() Returns the clock-wise rotation that should be applied to thepicture before displaying.
      Size getSize() Returns the size of the picture after the rotation is applied.
      Facing getFacing() Returns the facing value with which this video was recorded.
      Array<byte> getData() Returns the raw compressed, ready to be saved to file,in the given format.
      PictureFormat getFormat() Returns the format for getData.
      void toBitmap(int maxWidth, int maxHeight, @NonNull() BitmapCallback callback) Shorthand for decodeBitmap.Decodes this picture on a background thread and posts the result in the UI thread usingthe given callback.
      void toBitmap(@NonNull() BitmapCallback callback) Shorthand for decodeBitmap.Decodes this picture on a background thread and posts the result in the UI thread usingthe given callback.
      void toFile(@NonNull() File file, @NonNull() FileCallback callback) Shorthand for writeToFile.This writes this picture to file on a background thread and posts the result in the UIthread using the given callback.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • isSnapshot

         boolean isSnapshot()

        Returns whether this result comes from a snapshot.

      • getLocation

        @Nullable() Location getLocation()

        Returns geographic information for this picture, if any.If it was set, it is also present in the file metadata.

      • getRotation

         int getRotation()

        Returns the clock-wise rotation that should be applied to thepicture before displaying. If it is non-zero, it is also presentin the EXIF metadata.

      • getSize

        @NonNull() Size getSize()

        Returns the size of the picture after the rotation is applied.

      • getData

        @NonNull() Array<byte> getData()

        Returns the raw compressed, ready to be saved to file,in the given format.

      • toBitmap

         void toBitmap(int maxWidth, int maxHeight, @NonNull() BitmapCallback callback)

        Shorthand for decodeBitmap.Decodes this picture on a background thread and posts the result in the UI thread usingthe given callback.

        Parameters:
        maxWidth - the max.
        maxHeight - the max.
        callback - a callback to be notified of image decoding
      • toBitmap

         void toBitmap(@NonNull() BitmapCallback callback)

        Shorthand for decodeBitmap.Decodes this picture on a background thread and posts the result in the UI thread usingthe given callback.

        Parameters:
        callback - a callback to be notified of image decoding
      • toFile

         void toFile(@NonNull() File file, @NonNull() FileCallback callback)

        Shorthand for writeToFile.This writes this picture to file on a background thread and posts the result in the UIthread using the given callback.

        Parameters:
        file - the file to write into
        callback - a callback