Class LocationPhoto


  • public class LocationPhoto
    extends java.lang.Object
    Stores the location photo that a player took of a QRCode
    • Constructor Summary

      Constructors 
      Constructor Description
      LocationPhoto​(android.graphics.Bitmap bitmap, Player player)
      This initializes a Photo with an image of a QRCode and the player that took it
      LocationPhoto​(androidx.camera.core.ImageProxy image, Player player)
      This initializes a Photo with an image of a QRCode and the player that took it
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      android.graphics.Bitmap getPhoto()
      This returns the image as a bitmap, ready to be displayed by an ImageView
      Player getPlayer()
      This returns the player who took the photo
      void setPhoto​(android.graphics.Bitmap bitmap)
      This sets the image of the photo, given a Bitmap
      void setPhoto​(androidx.camera.core.ImageProxy image)
      This sets the image of the photo, given an ImageProxy
      • Methods inherited from class java.lang.Object

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

      • LocationPhoto

        public LocationPhoto​(android.graphics.Bitmap bitmap,
                             Player player)
        This initializes a Photo with an image of a QRCode and the player that took it
        Parameters:
        bitmap - The location image of the QRCode, as a Bitmap type
        player - This is the player that took the photo
      • LocationPhoto

        public LocationPhoto​(androidx.camera.core.ImageProxy image,
                             Player player)
        This initializes a Photo with an image of a QRCode and the player that took it
        Parameters:
        image - The location image of the QR Code, as an ImageProxy type
        player - This is the player that took the photo
    • Method Detail

      • getPhoto

        public android.graphics.Bitmap getPhoto()
        This returns the image as a bitmap, ready to be displayed by an ImageView
        Returns:
        Return the photo
      • getPlayer

        public Player getPlayer()
        This returns the player who took the photo
        Returns:
        Return the player who took the photo
      • setPhoto

        public void setPhoto​(android.graphics.Bitmap bitmap)
        This sets the image of the photo, given a Bitmap
        Parameters:
        bitmap - This is the bitmap to set photo to
      • setPhoto

        public void setPhoto​(androidx.camera.core.ImageProxy image)
        This sets the image of the photo, given an ImageProxy
        Parameters:
        image - This is the image to set photo to