A B C D F G H I L M N O P Q R S T U V 
All Classes All Packages

A

activePlayer - Variable in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
 
add(Player, DatabaseConsumer<Player>) - Method in class com.cmput301w23t09.qrhunter.player.PlayerDatabase
Adds a player that does not currently exist in the database to the database.
addButton - Variable in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
 
addComment(Comment) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
This adds a comment to the QR code
addListener(DatabaseChangeListener) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCodeDatabase
Add snapshot listener to database
addLocation(QRLocation) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
Adds a new location to the list of locations, as long as it's farther than 100m from any existing location.
addLocation(QRCode) - Method in class com.cmput301w23t09.qrhunter.map.LocationHandler
Adds current location to the list of QR Codes.
addPhoto(LocationPhoto) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
This adds a photo taken of the QR code
addPlayer(String) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
This adds a player that has scanned the QR code
addPlayerToQR(Player, QRCode, DatabaseConsumer<Void>) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCodeDatabase
Adds the QRCode to the player's account, as well as the Player to the QRCode's collection of players that have added it.
addQRCode(QRCode, DatabaseConsumer<Void>) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCodeDatabase
Adds a never-before-scanned QRCode to the database
AddQRCodeFragment - Class in com.cmput301w23t09.qrhunter.qrcode
Displays information about a specific QRCode.
AddQRCodeFragment() - Constructor for class com.cmput301w23t09.qrhunter.qrcode.AddQRCodeFragment
 
addUpdater() - Method in class com.cmput301w23t09.qrhunter.profile.ProfileController
This sets up the listener for real-time database changes

B

BaseFragment - Class in com.cmput301w23t09.qrhunter
Base Fragment class with utility fragment methods.
BaseFragment(GameController) - Constructor for class com.cmput301w23t09.qrhunter.BaseFragment
 

C

CAMERA_PERMISSIONS - Static variable in class com.cmput301w23t09.qrhunter.scanqr.camera.CameraController
 
CameraController - Class in com.cmput301w23t09.qrhunter.scanqr.camera
Manages Camera preview and capture using Google's CameraX library https://developer.android.com/training/camerax (Used ChatGPT to convert Kotlin to Java)
CameraController(Fragment, PreviewView) - Constructor for class com.cmput301w23t09.qrhunter.scanqr.camera.CameraController
Creates a basic CameraController that displays its preview to a view.
cameraExecutor - Variable in class com.cmput301w23t09.qrhunter.scanqr.camera.CameraController
 
CameraLocationPhotoController - Class in com.cmput301w23t09.qrhunter.scanqr.camera
Enables the ImageCapture camera use case to let players take location photos.
CameraLocationPhotoController(LocationPhotoFragment, PreviewView, LocationPhotoController) - Constructor for class com.cmput301w23t09.qrhunter.scanqr.camera.CameraLocationPhotoController
Creates a CameraLocationPhotoController that can take location photos
cameraPermissionsGranted() - Method in class com.cmput301w23t09.qrhunter.scanqr.camera.CameraController
Checks if all required permissions are granted
CameraScannerController - Class in com.cmput301w23t09.qrhunter.scanqr.camera
Enables the ImageAnalysis camera use case to let players scan codes.
CameraScannerController(ScannerFragment, PreviewView, ScannerController) - Constructor for class com.cmput301w23t09.qrhunter.scanqr.camera.CameraScannerController
Creates a CameraScannerController for previewing and scanning QR codes
clearCachesAndReloadLeaderboard() - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardFragment
Clears the leaderboard cache and reloads the current shown leaderboard.
com.cmput301w23t09.qrhunter - package com.cmput301w23t09.qrhunter
 
com.cmput301w23t09.qrhunter.comment - package com.cmput301w23t09.qrhunter.comment
 
com.cmput301w23t09.qrhunter.database - package com.cmput301w23t09.qrhunter.database
 
com.cmput301w23t09.qrhunter.leaderboard - package com.cmput301w23t09.qrhunter.leaderboard
 
com.cmput301w23t09.qrhunter.locationphoto - package com.cmput301w23t09.qrhunter.locationphoto
 
com.cmput301w23t09.qrhunter.map - package com.cmput301w23t09.qrhunter.map
 
com.cmput301w23t09.qrhunter.navigation - package com.cmput301w23t09.qrhunter.navigation
 
com.cmput301w23t09.qrhunter.player - package com.cmput301w23t09.qrhunter.player
 
com.cmput301w23t09.qrhunter.profile - package com.cmput301w23t09.qrhunter.profile
 
com.cmput301w23t09.qrhunter.qrcode - package com.cmput301w23t09.qrhunter.qrcode
 
com.cmput301w23t09.qrhunter.scanqr - package com.cmput301w23t09.qrhunter.scanqr
 
com.cmput301w23t09.qrhunter.scanqr.camera - package com.cmput301w23t09.qrhunter.scanqr.camera
 
com.cmput301w23t09.qrhunter.util - package com.cmput301w23t09.qrhunter.util
 
Comment - Class in com.cmput301w23t09.qrhunter.comment
This is a class that stores a comment that a player made
Comment(String, String, String) - Constructor for class com.cmput301w23t09.qrhunter.comment.Comment
This initializes a Comment with a comment and the player who made it
CommentAdapter - Class in com.cmput301w23t09.qrhunter.comment
The CommentAdapter is responsible for managing and creating view for each comment object
CommentAdapter(Context, List<Comment>) - Constructor for class com.cmput301w23t09.qrhunter.comment.CommentAdapter
 
commentBox - Variable in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
 
comments - Variable in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
 
commentsAdapter - Variable in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
 
compare(QRCode, QRCode) - Method in class com.cmput301w23t09.qrhunter.qrcode.ScoreComparator
 
contactButton - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileFragment
This is the view displaying the settings button
controller - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileFragment
This is the controller that manages the fragment

D

DatabaseChangeListener - Interface in com.cmput301w23t09.qrhunter
Specifies a listener for database changes.
DatabaseConnection - Class in com.cmput301w23t09.qrhunter.database
Wrapper class to wrap around retrieving Firebase data
DatabaseConnection() - Constructor for class com.cmput301w23t09.qrhunter.database.DatabaseConnection
 
DatabaseConsumer<T> - Interface in com.cmput301w23t09.qrhunter.database
Utility interface as a shortcut to specifying a Consumer of a DatabaseQueryResult
DatabaseQueryResults<T> - Class in com.cmput301w23t09.qrhunter.database
Database query result helper class used as an intermediate between the database and application in data representation.
DatabaseQueryResults(T) - Constructor for class com.cmput301w23t09.qrhunter.database.DatabaseQueryResults
 
DatabaseQueryResults(T, Exception) - Constructor for class com.cmput301w23t09.qrhunter.database.DatabaseQueryResults
 
delete(Player, DatabaseConsumer<Void>) - Method in class com.cmput301w23t09.qrhunter.player.PlayerDatabase
Delete a player from the database
deleteButton - Variable in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
 
deleteComment(Comment) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
This deletes a comment from the QR code
deletePhoto(LocationPhoto) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
This deletes a photo taken of the QR code
deletePhoto(QRCode, Player, Consumer<Boolean>) - Method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoStorage
Deletes a player's location photo from the QRCode
deletePlayer(String) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
This removes a player that has scanned the QR code
DeleteQRCodeFragment - Class in com.cmput301w23t09.qrhunter.qrcode
Displays information about a specific QRCode.
DeleteQRCodeFragment() - Constructor for class com.cmput301w23t09.qrhunter.qrcode.DeleteQRCodeFragment
 
DEVICE_UUID_FILE - Static variable in class com.cmput301w23t09.qrhunter.util.DeviceUtils
 
DEVICE_UUID_FILE_FIELD - Static variable in class com.cmput301w23t09.qrhunter.util.DeviceUtils
 
DeviceUtils - Class in com.cmput301w23t09.qrhunter.util
Various device-related utility functions, such as fetching UUID
deviceUUID - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileController
Device UUID of the profile
displayContactInfo(String, String) - Method in class com.cmput301w23t09.qrhunter.profile.ProfileFragment
Display a prompt showcasing the contact information for this profile.
displayPercentiles(double, double, double) - Method in class com.cmput301w23t09.qrhunter.profile.ProfilePercentileFragment
 
displayRegistrationError(String) - Method in class com.cmput301w23t09.qrhunter.LandingActivity
Called when an error related to registration should be displayed to the user.
displaySearchQueryData(String, List<SearchQueryEntry>, SearchQueryEntryAdapter, LinearLayout, Context) - Method in class com.cmput301w23t09.qrhunter.leaderboard.PlayerSearchController
Displays the search query data in the list view of the PlayerSearchFragment
displayToast(String) - Method in class com.cmput301w23t09.qrhunter.LandingActivity
Called when a toast should be displayed by the main activity.
distanceTo(QRLocation) - Method in class com.cmput301w23t09.qrhunter.map.QRLocation
Calculates distance between this QRLocation and another QRLocation using Haversine's formula
doInBackground(String...) - Method in class com.cmput301w23t09.qrhunter.util.VisualFetcher
 

F

FirebaseGlideModule - Class in com.cmput301w23t09.qrhunter.util
Registers Firebase for use with Glide
FirebaseGlideModule() - Constructor for class com.cmput301w23t09.qrhunter.util.FirebaseGlideModule
 
follow(Player, Player, DatabaseConsumer<Void>) - Method in class com.cmput301w23t09.qrhunter.player.PlayerDatabase
Follow the playerToFollow as the player
followButton - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileController
This is the follow button
followButton - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileFragment
 
followersText - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileController
This is the text that displays how many followers the user has
followersText - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileFragment
 
followingText - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileController
This is the text that displays how many users the player is following
followingText - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileFragment
 
followLoadingButton - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileController
 
fragment - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileController
This is the profile fragment the controller handles
fragment - Variable in class com.cmput301w23t09.qrhunter.scanqr.camera.CameraController
 

G

GameActivity - Class in com.cmput301w23t09.qrhunter
The GameActivity class handles displaying the fragments and navbar onscreen.
GameActivity() - Constructor for class com.cmput301w23t09.qrhunter.GameActivity
 
gameController - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileController
This is the game controller that controls the content on screen.
GameController - Class in com.cmput301w23t09.qrhunter
The GameController handles controlling the content to be shown onscreen when viewing the GameActivity.
GameController(GameActivity, Player) - Constructor for class com.cmput301w23t09.qrhunter.GameController
 
getActivePlayer() - Method in class com.cmput301w23t09.qrhunter.BaseFragment
 
getActivePlayer() - Method in class com.cmput301w23t09.qrhunter.GameController
 
getActivity() - Method in class com.cmput301w23t09.qrhunter.GameController
Retrieve the GameActivity this controller controls.
getAddQRCodeFragment() - Method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoFragment
 
getAllPlayers(DatabaseConsumer<Set<Player>>) - Method in class com.cmput301w23t09.qrhunter.player.PlayerDatabase
Retrieve all players from the database
getAllQRCodes(DatabaseConsumer<List<QRCode>>) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCodeDatabase
Retrieve all QRCodes stored in the database.
getBody() - Method in class com.cmput301w23t09.qrhunter.GameController
Retrieve the current body fragment.
getCollection(String) - Method in class com.cmput301w23t09.qrhunter.database.DatabaseConnection
Retrieve a firebase collection prefixed by the collection prefix
getCollectionPrefix() - Method in class com.cmput301w23t09.qrhunter.database.DatabaseConnection
All collections have a prefix describing their current environment.
getComment() - Method in class com.cmput301w23t09.qrhunter.comment.Comment
This returns the comment attribute
getComments() - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
This returns the comments on the QR code
getController() - Method in class com.cmput301w23t09.qrhunter.GameActivity
Retrieve the game controller
getController() - Method in class com.cmput301w23t09.qrhunter.profile.ProfileFragment
Gets the controller of the profile fragment
getCount() - Method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoAdapter
 
getData() - Method in class com.cmput301w23t09.qrhunter.database.DatabaseQueryResults
Retrieve the result of the database query.
getDeviceId() - Method in class com.cmput301w23t09.qrhunter.leaderboard.SearchQueryEntry
Retrieves the device ID of the search query
getDeviceId() - Method in class com.cmput301w23t09.qrhunter.player.Player
Get the device id associated with this player
getDeviceUUID(Activity) - Static method in class com.cmput301w23t09.qrhunter.util.DeviceUtils
Retrieve the UUID associated with this device.
getDocumentId() - Method in class com.cmput301w23t09.qrhunter.player.Player
Get the firebase document id associated with this player
getEmail() - Method in class com.cmput301w23t09.qrhunter.player.Player
Get the email associated with this player
getEntries() - Method in class com.cmput301w23t09.qrhunter.leaderboard.Leaderboard
Retrieve the entries of the leaderboard.
getException() - Method in class com.cmput301w23t09.qrhunter.database.DatabaseQueryResults
Retrieve the exception of the database query if any.
getFollowers() - Method in class com.cmput301w23t09.qrhunter.player.Player
Retrieve the device ids of the players this player is being followed by
getFollowing() - Method in class com.cmput301w23t09.qrhunter.player.Player
Retrieve the device ids of the players this player is following
getFragment() - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardController
Retrieve the leaderboard fragment
getFusedLocationProviderClient() - Method in class com.cmput301w23t09.qrhunter.map.MapFragment
Retrieve the location provider client
getGameController() - Method in class com.cmput301w23t09.qrhunter.BaseFragment
Retrieve the GameController.
getGameController() - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardController
Retrieve the game controller
getHash() - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
This returns the hash of the QR code
getInstance() - Static method in class com.cmput301w23t09.qrhunter.database.DatabaseConnection
Retrieve the instance of the DatabaseConnection
getInstance() - Static method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoStorage
 
getInstance() - Static method in class com.cmput301w23t09.qrhunter.player.PlayerDatabase
Retrieves the PlayerDatabase
getInstance() - Static method in class com.cmput301w23t09.qrhunter.qrcode.QRCodeDatabase
Retrieves the QRCodeDatabase
getLatitude() - Method in class com.cmput301w23t09.qrhunter.map.QRLocation
Retrieve the latitude
getLeft() - Method in class com.cmput301w23t09.qrhunter.util.Tuple
Retrieve the left node object
getLoc() - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
This returns the location of the QR code
getLocationPermissionGranted() - Method in class com.cmput301w23t09.qrhunter.map.MapFragment
Check if location permissions were granted.
getLocationPhotoAdapter() - Method in class com.cmput301w23t09.qrhunter.qrcode.AddQRCodeFragment
Retrieve the location photo adapter
getLocationPhotoController() - Method in class com.cmput301w23t09.qrhunter.qrcode.AddQRCodeFragment
Retrieve the location photo controller
getLocationPhotoFragment() - Method in class com.cmput301w23t09.qrhunter.qrcode.AddQRCodeFragment
Retrieve the location photo fragment
getLocationPhotos(QRCode, Consumer<ArrayList<StorageReference>>) - Method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoStorage
Retrieves all the location photos (references) for a given QRCode
getLocations() - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
Returns all locations of the QR code
getLocationString() - Method in class com.cmput301w23t09.qrhunter.map.QRLocation
Converts the Location object to a string that can be stored on Firebase
getLongitude() - Method in class com.cmput301w23t09.qrhunter.map.QRLocation
Retrieve the longitude
getName() - Method in class com.cmput301w23t09.qrhunter.leaderboard.Leaderboard
 
getName() - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardEntry
Retrieve the name of the leaderboard entry
getName() - Method in class com.cmput301w23t09.qrhunter.leaderboard.SearchQueryEntry
Retrieves the name of the search query
getName() - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
This returns the name of the QR code
getNearbyCodes() - Method in class com.cmput301w23t09.qrhunter.map.SearchQRController
Get an on click listener that shows qr codes near the user's location
getPhoneNo() - Method in class com.cmput301w23t09.qrhunter.player.Player
Get the phone number associated with this player
getPhoto() - Method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhoto
This returns the image as a bitmap, ready to be displayed by an ImageView
getPhotos() - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
This returns the photos taken of the QR code
getPlayer() - Method in class com.cmput301w23t09.qrhunter.leaderboard.PlayerLeaderboardEntry
Retrieve the player this entry represents.
getPlayer() - Method in class com.cmput301w23t09.qrhunter.leaderboard.SearchQueryEntry
Retireve the player of the search query
getPlayer() - Method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhoto
This returns the player who took the photo
getPlayer() - Method in class com.cmput301w23t09.qrhunter.qrcode.QRPlayerScanEntry
Retrieve the player this entry represents
getPlayerByDeviceId(UUID, DatabaseConsumer<Player>) - Method in class com.cmput301w23t09.qrhunter.player.PlayerDatabase
Retrieve a player by their device UUID from the database
getPlayerByDocumentId(String, DatabaseConsumer<Player>) - Method in class com.cmput301w23t09.qrhunter.player.PlayerDatabase
Retrieve players by their document id
getPlayerByUsername(String, DatabaseConsumer<Player>) - Method in class com.cmput301w23t09.qrhunter.player.PlayerDatabase
Retrieve a player by their username from the database
getPlayerId() - Method in class com.cmput301w23t09.qrhunter.comment.Comment
This returns the player ID attribute
getPlayerLocationPhoto(Player) - Method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoAdapter
Gets the index of the player's location photo
getPlayers() - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
This returns the players who have scanned the QR code
getPopup() - Method in class com.cmput301w23t09.qrhunter.GameController
Retrieve the current popup dialog.
getPosition() - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardEntry
Retrieve the position of the leaderboard entry
getPrefix() - Method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoStorage
 
getProfileController() - Method in class com.cmput301w23t09.qrhunter.profile.MyProfileFragment
 
getProfileController() - Method in class com.cmput301w23t09.qrhunter.profile.OtherProfileFragment
 
getProfileController() - Method in class com.cmput301w23t09.qrhunter.profile.ProfileFragment
 
getProfilePic() - Method in class com.cmput301w23t09.qrhunter.player.Player
Generates the user's profile picture using Dicebear
getProfilePicUrl() - Method in class com.cmput301w23t09.qrhunter.player.Player
 
getQRCode() - Method in class com.cmput301w23t09.qrhunter.leaderboard.QRCodeLeaderboardEntry
Retrieve the QRCode for the entry this represents
getQRCodeByHash(String, DatabaseConsumer<QRCode>) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCodeDatabase
Retrieve a QRCode by its hash from the database
getQRCodeHashes() - Method in class com.cmput301w23t09.qrhunter.player.Player
Returns a set of QR code hashes that have been scanned by player
getQRCodeHashes(List<String>, DatabaseConsumer<List<QRCode>>) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCodeDatabase
Retrieve a set of QRCodes by their hashes
getQRCodeRef(QRCode) - Method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoStorage
Gets the reference for the folder containing all the location photos of the QRCode
getRegion() - Method in class com.cmput301w23t09.qrhunter.map.QRLocation
Retrieve the region
getResponseCode() - Method in class com.cmput301w23t09.qrhunter.util.VisualFetcher
Retrieve the response code of the HTTP request
getRight() - Method in class com.cmput301w23t09.qrhunter.util.Tuple
Retrieve the right node object
getScore() - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardEntry
Retrieve the score of the leaderboard entry
getScore() - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
This returns the score of the QR code
getScore() - Method in class com.cmput301w23t09.qrhunter.qrcode.QRPlayerScanEntry
Retrieve the score of the player
getScoreSuffix() - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardEntry
Retrieve the suffix to use for this leaderboard entry
getTitle() - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardEntryTitle
Retrieve the title this entry represents
getTopQRCodesByRegionLeaderboard(BiConsumer<Exception, List<Leaderboard<QRCodeLeaderboardEntry>>>) - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardController
Retrieve the top QRCode points value leaderboard by region in descending order.
getTopQRCodesLeaderboard(BiConsumer<Exception, Leaderboard<QRCodeLeaderboardEntry>>) - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardController
Retrieve the top QRCodes points value leaderboard in descending order.
getTopScansLeaderboard(BiConsumer<Exception, Leaderboard<PlayerLeaderboardEntry>>) - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardController
Retrieve the top scans leaderboard in descending order.
getTopScore() - Method in class com.cmput301w23t09.qrhunter.profile.ProfileController
This computes the top score of the qr codes
getTotalPointsLeaderboard(BiConsumer<Exception, Leaderboard<PlayerLeaderboardEntry>>) - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardController
Retrieve the total points leaderboard in descending order.
getTotalScore() - Method in class com.cmput301w23t09.qrhunter.profile.ProfileController
This computes the sum of code scores
getUsername() - Method in class com.cmput301w23t09.qrhunter.comment.Comment
This returns the player username attribute
getUsername() - Method in class com.cmput301w23t09.qrhunter.player.Player
Get the username associated with this player
getView(int, View, ViewGroup) - Method in class com.cmput301w23t09.qrhunter.comment.CommentAdapter
Returns view for each row in the listview
getView(int, View, ViewGroup) - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardEntryAdapter
 
getView(int, View, ViewGroup) - Method in class com.cmput301w23t09.qrhunter.leaderboard.SearchQueryEntryAdapter
Gets the view that represents the search query entry at a certain position in the list
getView(int, View, ViewGroup) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCodeAdapter
 
getView(int, View, ViewGroup) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCodePlayerScansAdapter
 
getView(Context, View, ViewGroup, LeaderboardEntry) - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardEntry
 
getView(Context, View, ViewGroup, LeaderboardEntryTitle) - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardEntryTitle
 
getView(Context, View, ViewGroup, T) - Method in interface com.cmput301w23t09.qrhunter.leaderboard.LeaderboardAdapterItem
Retrieves the view to render in the leaderboard
getVisualRepresentation() - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
This returns the visual representation of the QR code
getVisualRepresentationUrl() - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
Retrieve the URL of the QRCode of the visual representation

H

handleBackButton() - Method in class com.cmput301w23t09.qrhunter.leaderboard.PlayerSearchController
Handles the switch from the PlayerSearchFragment to the Leaderboard fragment when the back button is pressed
handleContactButtonClick() - Method in class com.cmput301w23t09.qrhunter.profile.MyProfileController
 
handleContactButtonClick() - Method in class com.cmput301w23t09.qrhunter.profile.OtherProfileController
 
handleContactButtonClick() - Method in class com.cmput301w23t09.qrhunter.profile.ProfileController
This handles the action to take when the contact info button is clicked.
handleEntryClick(PlayerLeaderboardEntry) - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardController
Called when a player leaderboard entry is clicked
handleEntryClick(QRCodeLeaderboardEntry) - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardController
Called when a qr leaderboard entry is clicked
handleFollowButtonClick() - Method in class com.cmput301w23t09.qrhunter.profile.OtherProfileController
 
handleQRSelect() - Method in class com.cmput301w23t09.qrhunter.profile.ProfileController
This is the onclicklistener for qr codes displayed in the profile
handleSearchQuery(String) - Method in class com.cmput301w23t09.qrhunter.leaderboard.PlayerSearchController
Handles the user's search query by transitioning to the search fragment
handleSearchQueryListClick(SearchQueryEntry) - Method in class com.cmput301w23t09.qrhunter.leaderboard.PlayerSearchController
Handles when user clicking on a search entry by transitioning to their profile
handleSpinnerSelect(Spinner) - Method in class com.cmput301w23t09.qrhunter.profile.ProfileController
This creates a custom OnItemSelectedListener for the given spinner

I

isFilteredByFollowedPlayers() - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardController
Check if the leaderboard is currently filtering to followed players
isSuccessful() - Method in class com.cmput301w23t09.qrhunter.database.DatabaseQueryResults
Check if the database query was successful.
isValidEmail(String) - Static method in class com.cmput301w23t09.qrhunter.util.ValidationUtils
Checks if the provided email is as valid email.
isValidPhoneNo(String) - Static method in class com.cmput301w23t09.qrhunter.util.ValidationUtils
Checks if the provided phone number is a valid phone number.
isValidUsername(String) - Static method in class com.cmput301w23t09.qrhunter.util.ValidationUtils
Checks if the provided username is a valid username that is between lengths 1-20 inclusive.

L

LandingActivity - Class in com.cmput301w23t09.qrhunter
The MainActivity handles displaying the landing and initial loading page.
LandingActivity() - Constructor for class com.cmput301w23t09.qrhunter.LandingActivity
 
LandingController - Class in com.cmput301w23t09.qrhunter
The MainController handles controlling whether or not to log the player in and also registration.
LandingController(LandingActivity) - Constructor for class com.cmput301w23t09.qrhunter.LandingController
 
Leaderboard<T extends LeaderboardEntry> - Class in com.cmput301w23t09.qrhunter.leaderboard
This class represents a leaderboard.
Leaderboard(String, List<T>) - Constructor for class com.cmput301w23t09.qrhunter.leaderboard.Leaderboard
Constructor for a leaderboard
Leaderboard(List<T>) - Constructor for class com.cmput301w23t09.qrhunter.leaderboard.Leaderboard
Constructor for a leaderboard
LeaderboardAdapterItem<T> - Interface in com.cmput301w23t09.qrhunter.leaderboard
Represents an item that can be rendered in the LeaderboardAdapter
LeaderboardController - Class in com.cmput301w23t09.qrhunter.leaderboard
Controller that handles retrieving and updating leaderboards.
LeaderboardController(LeaderboardFragment, GameController) - Constructor for class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardController
 
LeaderboardEntry - Class in com.cmput301w23t09.qrhunter.leaderboard
Represents a leaderboard entry
LeaderboardEntry(int, String, long, String) - Constructor for class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardEntry
Constructor for a leaderboard entry
LeaderboardEntryAdapter - Class in com.cmput301w23t09.qrhunter.leaderboard
ArrayAdapter for leaderboard entries
LeaderboardEntryAdapter(Context, List<LeaderboardAdapterItem<?>>) - Constructor for class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardEntryAdapter
 
LeaderboardEntryTitle - Class in com.cmput301w23t09.qrhunter.leaderboard
Leaderboard entry describing a title view
LeaderboardEntryTitle(String) - Constructor for class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardEntryTitle
 
LeaderboardFragment - Class in com.cmput301w23t09.qrhunter.leaderboard
This fragment renders the leaderboard page
LeaderboardFragment(GameController) - Constructor for class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardFragment
 
LeaderboardSettingsFragment - Class in com.cmput301w23t09.qrhunter.leaderboard
The leaderboard filter settings fragment
LeaderboardSettingsFragment(LeaderboardController) - Constructor for class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardSettingsFragment
 
listElement - Variable in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
 
listView - Variable in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
 
loadingButton - Variable in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
 
loadingFollowButton - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileFragment
 
LOCATION_PERMISSIONS - Static variable in class com.cmput301w23t09.qrhunter.map.LocationHandler
 
locationCheckbox - Variable in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
 
locationHandler - Variable in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
 
LocationHandler - Class in com.cmput301w23t09.qrhunter.map
Handles location permissions and retrieving the location of the player's device.
LocationHandler(Fragment) - Constructor for class com.cmput301w23t09.qrhunter.map.LocationHandler
Creates a new LocationHandler
locationPermissionsGranted() - Method in class com.cmput301w23t09.qrhunter.map.LocationHandler
Checks if at least one of the location permissions was granted.
LocationPhoto - Class in com.cmput301w23t09.qrhunter.locationphoto
Stores the location photo that a player took of a QRCode
LocationPhoto(Bitmap, Player) - Constructor for class com.cmput301w23t09.qrhunter.locationphoto.LocationPhoto
This initializes a Photo with an image of a QRCode and the player that took it
LocationPhoto(ImageProxy, Player) - Constructor for class com.cmput301w23t09.qrhunter.locationphoto.LocationPhoto
This initializes a Photo with an image of a QRCode and the player that took it
locationPhotoAdapter - Variable in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
 
LocationPhotoAdapter - Class in com.cmput301w23t09.qrhunter.locationphoto
Displays a QRCode's location photos inside a slider view.
LocationPhotoAdapter(Context, QRCode) - Constructor for class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoAdapter
 
LocationPhotoController - Class in com.cmput301w23t09.qrhunter.locationphoto
The LocationPhotoController manages the backend logic for letting a user take a location photo
LocationPhotoController(LocationPhotoFragment, QRCode, Player) - Constructor for class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoController
Creates the LocationPhotoController
LocationPhotoFragment - Class in com.cmput301w23t09.qrhunter.locationphoto
The fragment that lets a user take a "location photo" to assist other users in locating the QR Code
LocationPhotoFragment() - Constructor for class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoFragment
 
locationPhotoSlider - Variable in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
 
locationPhotoStorage - Variable in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
 
LocationPhotoStorage - Class in com.cmput301w23t09.qrhunter.locationphoto
Singleton class to retrieve location photos stored.
LocationPhotoStorage() - Constructor for class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoStorage
 

M

MapFragment - Class in com.cmput301w23t09.qrhunter.map
Displays the map that allows QRs to be seen/searched
MapFragment(GameController) - Constructor for class com.cmput301w23t09.qrhunter.map.MapFragment
 
mockInstance(DatabaseConnection) - Static method in class com.cmput301w23t09.qrhunter.database.DatabaseConnection
Update the instance of the database connection
mockInstance(LocationPhotoStorage) - Static method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoStorage
Update the instance of the LocationPhotoStorage
mockInstance(PlayerDatabase) - Static method in class com.cmput301w23t09.qrhunter.player.PlayerDatabase
Sets instance to a mocked PlayerDatabase for testing purposes.
mockInstance(QRCodeDatabase) - Static method in class com.cmput301w23t09.qrhunter.qrcode.QRCodeDatabase
Manually set QRCodeDatabase to some mocked instance for testing
MyProfileController - Class in com.cmput301w23t09.qrhunter.profile
 
MyProfileController(ProfileFragment, GameController) - Constructor for class com.cmput301w23t09.qrhunter.profile.MyProfileController
This initializes the controller with its corresponding fragment
MyProfileFragment - Class in com.cmput301w23t09.qrhunter.profile
 
MyProfileFragment(GameController) - Constructor for class com.cmput301w23t09.qrhunter.profile.MyProfileFragment
Initializes the fragment with the app controller

N

NavigationControllerAdapter - Class in com.cmput301w23t09.qrhunter.navigation
The NavigationController handles controlling the content to display.
NavigationControllerAdapter(GameController) - Constructor for class com.cmput301w23t09.qrhunter.navigation.NavigationControllerAdapter
 
newInstance(QRCode, Player) - Static method in class com.cmput301w23t09.qrhunter.qrcode.AddQRCodeFragment
Creates a new AddQRCodeFragment to display a specific QR Code
newInstance(QRCode, Player) - Static method in class com.cmput301w23t09.qrhunter.qrcode.DeleteQRCodeFragment
Creates a new DeleteQRCodeFragment to display a specific QR Code
newInstance(QRCode, Player) - Static method in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
Creates a new QRCodeFragment to display a specific QR Code
newInstance(QRCode, AddQRCodeFragment, Player) - Static method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoFragment
Create a LocationPhotoFragment that lets the user snap a location photo for the given QR code

O

onBindViewHolder(LocationPhotoAdapter.LocationPhotoHolder, int) - Method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoAdapter
 
onChange() - Method in interface com.cmput301w23t09.qrhunter.DatabaseChangeListener
Method to call on a database change.
onChange() - Method in class com.cmput301w23t09.qrhunter.profile.ProfileController
This refreshes the profile upon database change
onCreate(Bundle) - Method in class com.cmput301w23t09.qrhunter.GameActivity
 
onCreate(Bundle) - Method in class com.cmput301w23t09.qrhunter.LandingActivity
 
onCreateDialog(Bundle) - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardSettingsFragment
 
onCreateDialog(Bundle) - Method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoFragment
Creates the Dialog that shows the camera's preview and shutter button
onCreateDialog(Bundle) - Method in class com.cmput301w23t09.qrhunter.map.QRSearchResultFragment
 
onCreateDialog(Bundle) - Method in class com.cmput301w23t09.qrhunter.profile.ProfilePercentileFragment
 
onCreateDialog(Bundle) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
 
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardFragment
 
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.cmput301w23t09.qrhunter.leaderboard.PlayerSearchFragment
Method that runs when the view is created
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.cmput301w23t09.qrhunter.map.MapFragment
 
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.cmput301w23t09.qrhunter.profile.ProfileFragment
 
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.cmput301w23t09.qrhunter.profile.ProfileSettingsFragment
 
onCreateView(LayoutInflater, ViewGroup, Bundle) - Method in class com.cmput301w23t09.qrhunter.scanqr.ScannerFragment
Sets up the camera preview and ImageAnalysis usage on the ScannerFragment
onCreateViewHolder(ViewGroup) - Method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoAdapter
 
onDestroy() - Method in class com.cmput301w23t09.qrhunter.scanqr.camera.CameraController
Shut down the camera when it's no longer needed
onDestroy() - Method in class com.cmput301w23t09.qrhunter.scanqr.ScannerFragment
Cleans up the camera when the user navigates from 'Scan QR', or when fragment is garbage collected
onFilterButtonClick() - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardController
Called when the filter button is clicked
onMapReady(GoogleMap) - Method in class com.cmput301w23t09.qrhunter.map.MapFragment
Called when the map has been initialized
onNavigationItemSelected(MenuItem) - Method in class com.cmput301w23t09.qrhunter.navigation.NavigationControllerAdapter
 
onRankingButtonClick() - Method in class com.cmput301w23t09.qrhunter.profile.ProfileController
Calculates and renders a fragment on screen to display the percentiles of the player
onRegistration(String, String, String) - Method in class com.cmput301w23t09.qrhunter.LandingController
Attempts to register player given the credentials
onRequestPermissionsResult(int, String[], int[]) - Method in class com.cmput301w23t09.qrhunter.map.MapFragment
Handles the users response to permission dialogue box popup
onRequestPermissionsResult(int, String[], int[]) - Method in class com.cmput301w23t09.qrhunter.qrcode.AddQRCodeFragment
Disables the "Record QR Location" box if the user has not granted location permissions
onRequestPermissionsResult(int, String[], int[]) - Method in class com.cmput301w23t09.qrhunter.scanqr.ScannerFragment
Requests user to give app camera permissions
onResume() - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
 
orderSpinner - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileController
This is the spinner that determines the qr code display order
OtherProfileController - Class in com.cmput301w23t09.qrhunter.profile
 
OtherProfileController(ProfileFragment, GameController, UUID) - Constructor for class com.cmput301w23t09.qrhunter.profile.OtherProfileController
This initializes the controller with its corresponding fragment
OtherProfileFragment - Class in com.cmput301w23t09.qrhunter.profile
 
OtherProfileFragment(GameController, UUID) - Constructor for class com.cmput301w23t09.qrhunter.profile.OtherProfileFragment
Initializes the fragment with the app controller

P

Player - Class in com.cmput301w23t09.qrhunter.player
Represents a Player of QRHunter
Player(String, UUID, String, String, String, List<String>, List<UUID>, List<UUID>) - Constructor for class com.cmput301w23t09.qrhunter.player.Player
This initializes a Player with the firebase document id, deviceId, username, phoneNo, and email.
Player(UUID, String, String, String, List<String>, List<UUID>, List<UUID>) - Constructor for class com.cmput301w23t09.qrhunter.player.Player
This initializes a Player with the deviceId, username, phoneNo, and email.
PlayerDatabase - Class in com.cmput301w23t09.qrhunter.player
Manages all Player database operations.
PlayerDatabase() - Constructor for class com.cmput301w23t09.qrhunter.player.PlayerDatabase
 
playerHasLocationPhoto(QRCode, Player, Consumer<Boolean>) - Method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoStorage
Checks if a player has a location photo uploadedt
playerHasQRCode(Player, QRCode, DatabaseConsumer<Boolean>) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCodeDatabase
Checks if a player has already added a specific QRCode to their profile.
PlayerLeaderboardEntry - Class in com.cmput301w23t09.qrhunter.leaderboard
Represents a player leaderboard entry item.
PlayerLeaderboardEntry(int, Player, long, String) - Constructor for class com.cmput301w23t09.qrhunter.leaderboard.PlayerLeaderboardEntry
Constructor for a player leaderboard entry
PlayerSearchController - Class in com.cmput301w23t09.qrhunter.leaderboard
Controls the PlayerSearchFragment
PlayerSearchController(GameController) - Constructor for class com.cmput301w23t09.qrhunter.leaderboard.PlayerSearchController
Creates a PlayerSearchController
PlayerSearchFragment - Class in com.cmput301w23t09.qrhunter.leaderboard
Represents fragment displaying the user's search query results
PlayerSearchFragment(GameController) - Constructor for class com.cmput301w23t09.qrhunter.leaderboard.PlayerSearchFragment
Constructor for the PlayerSearchFragment
previewView - Variable in class com.cmput301w23t09.qrhunter.scanqr.camera.CameraController
 
ProfileController - Class in com.cmput301w23t09.qrhunter.profile
This is the controller for the profile fragment of the app
ProfileController(ProfileFragment, GameController, UUID) - Constructor for class com.cmput301w23t09.qrhunter.profile.ProfileController
This initializes the controller with its corresponding fragment
ProfileFragment - Class in com.cmput301w23t09.qrhunter.profile
This is the fragment displaying the user's profile
ProfileFragment(GameController) - Constructor for class com.cmput301w23t09.qrhunter.profile.ProfileFragment
Initializes the fragment with the app controller
ProfilePercentileFragment - Class in com.cmput301w23t09.qrhunter.profile
Fragment displayed to show the percentile data of a player.
ProfilePercentileFragment() - Constructor for class com.cmput301w23t09.qrhunter.profile.ProfilePercentileFragment
 
ProfileSettingsController - Class in com.cmput301w23t09.qrhunter.profile
 
ProfileSettingsController(GameController, UUID) - Constructor for class com.cmput301w23t09.qrhunter.profile.ProfileSettingsController
 
ProfileSettingsFragment - Class in com.cmput301w23t09.qrhunter.profile
Fragment to display and edit contact details
ProfileSettingsFragment(GameController, UUID) - Constructor for class com.cmput301w23t09.qrhunter.profile.ProfileSettingsFragment
 

Q

qrCode - Variable in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
 
QRCode - Class in com.cmput301w23t09.qrhunter.qrcode
This class defines a QR code
QRCode(String) - Constructor for class com.cmput301w23t09.qrhunter.qrcode.QRCode
Initializes a *newly-scanned* QRCode using only its hash value
QRCode(String, String, Integer, QRLocation, ArrayList<QRLocation>, ArrayList<LocationPhoto>, ArrayList<Comment>, ArrayList<String>) - Constructor for class com.cmput301w23t09.qrhunter.qrcode.QRCode
This initializes a QR code with its hash, name, visual representation, score, location, photo, comments, and players who have scanned it
qrCodeAdapter - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileController
This is the adapter for displaying the QRCode objects
QRCodeAdapter - Class in com.cmput301w23t09.qrhunter.qrcode
This is an array adapter for QRCode objects
QRCodeAdapter(Context, ArrayList<QRCode>) - Constructor for class com.cmput301w23t09.qrhunter.qrcode.QRCodeAdapter
This initializes the adapter with a context and list of QRCode objects
QRCodeDatabase - Class in com.cmput301w23t09.qrhunter.qrcode
Manages all QRCode-related database operations, and ensures that the collection of QRCodes that a each player has scanned is consistent with the collection of players that have scanned a specific QR code.
QRCodeFragment - Class in com.cmput301w23t09.qrhunter.qrcode
Displays information about a specific QRCode.
QRCodeFragment() - Constructor for class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
 
QRCodeLeaderboardEntry - Class in com.cmput301w23t09.qrhunter.leaderboard
Represents the QR leaderboard entry this entry represents
QRCodeLeaderboardEntry(int, QRCode, long, String) - Constructor for class com.cmput301w23t09.qrhunter.leaderboard.QRCodeLeaderboardEntry
Constructor for a leaderboard entry
qrCodeList - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileController
This is the gridview showing the qr codes of the player
QRCodePlayerScansAdapter - Class in com.cmput301w23t09.qrhunter.qrcode
Adapter that handles displaying QRCode player scans
QRCodePlayerScansAdapter(Context) - Constructor for class com.cmput301w23t09.qrhunter.qrcode.QRCodePlayerScansAdapter
 
qrCodes - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileController
This is the array of QRCode objects that the fragment displays
QRLocation - Class in com.cmput301w23t09.qrhunter.map
Holds a QR code's location, created from a location string stored in the database
QRLocation(String) - Constructor for class com.cmput301w23t09.qrhunter.map.QRLocation
Creates a QRLocation object based on a location string
QRLocation(String, double, double) - Constructor for class com.cmput301w23t09.qrhunter.map.QRLocation
Creates a QRLocation object from a set of coordinates.
QRLocation(String, Location) - Constructor for class com.cmput301w23t09.qrhunter.map.QRLocation
Creates a QRLocation object based on an existing location object
QRPlayerScanEntry - Class in com.cmput301w23t09.qrhunter.qrcode
Represents an entry on the QRCode scans list.
QRPlayerScanEntry(Player, int) - Constructor for class com.cmput301w23t09.qrhunter.qrcode.QRPlayerScanEntry
 
QRSearchResultFragment - Class in com.cmput301w23t09.qrhunter.map
The fragment the QRSearchResultFragment should open up from
QRSearchResultFragment(ArrayList<QRCode>, MapFragment) - Constructor for class com.cmput301w23t09.qrhunter.map.QRSearchResultFragment
This initializes a dialog fragment with a list of codes to display, and the fragment to open it up from

R

rankingsButton - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileFragment
This is the button that allows the user to view their rankings
registerComponents(Context, Glide, Registry) - Method in class com.cmput301w23t09.qrhunter.util.FirebaseGlideModule
 
removeLastAddedLocation(QRCode) - Method in class com.cmput301w23t09.qrhunter.map.LocationHandler
Removes the most-recently added location from the QR code
removeLocation(QRLocation) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
Removes a location from the list of locations.
removeQRCodeFromPlayer(Player, QRCode, DatabaseConsumer<Void>) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCodeDatabase
Removes the QRCode to the player's account, as well as the Player from the QRCode's collection of players that have added it.
renewLocationPhotos(Consumer<List<StorageReference>>) - Method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoAdapter
Fetchs all location photos for the QRCode and updates the slider view
REQUEST_CODE_PERMISSIONS - Static variable in class com.cmput301w23t09.qrhunter.map.LocationHandler
 
REQUEST_CODE_PERMISSIONS - Static variable in class com.cmput301w23t09.qrhunter.scanqr.camera.CameraController
 
requestPlayerData(Consumer<Player>) - Method in class com.cmput301w23t09.qrhunter.profile.ProfileSettingsController
Request the player of this settings page.
returnToProfile() - Method in class com.cmput301w23t09.qrhunter.profile.ProfileSettingsController
Returns to the profile fragment

S

saveChanges(String, String, Consumer<Boolean>) - Method in class com.cmput301w23t09.qrhunter.profile.ProfileSettingsController
Saves the changes of the player's new contact details.
scanCode(ImageProxy) - Method in class com.cmput301w23t09.qrhunter.scanqr.ScannerController
Scans for any QR Codes in the picture
ScannerController - Class in com.cmput301w23t09.qrhunter.scanqr
Controls QR Code scanning using Google's MLKit Library (https://developers.google.com/ml-kit/vision/barcode-scanning/android)
ScannerController(BaseFragment, Player) - Constructor for class com.cmput301w23t09.qrhunter.scanqr.ScannerController
Creates a ScannerController
ScannerFragment - Class in com.cmput301w23t09.qrhunter.scanqr
The 'Scan QR' page where users can use their rear camera to scan QR codes
ScannerFragment(GameController) - Constructor for class com.cmput301w23t09.qrhunter.scanqr.ScannerFragment
Creates the ScannerFragment where users can scan and add new QR Codes to their profile
scansAdapter - Variable in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
 
ScoreComparator - Class in com.cmput301w23t09.qrhunter.qrcode
This implements the comparator for sorting QR codes by score
ScoreComparator() - Constructor for class com.cmput301w23t09.qrhunter.qrcode.ScoreComparator
 
searchNearbyCodes() - Method in class com.cmput301w23t09.qrhunter.map.SearchQRController
Gets an on-query listener that shows qr codes near the queried location
SearchQRController - Class in com.cmput301w23t09.qrhunter.map
Controller that handles searching QRs by address/coordinates
SearchQRController(SearchView, MapFragment) - Constructor for class com.cmput301w23t09.qrhunter.map.SearchQRController
 
SearchQueryEntry - Class in com.cmput301w23t09.qrhunter.leaderboard
Represents a search query entry
SearchQueryEntry(String, UUID, Player) - Constructor for class com.cmput301w23t09.qrhunter.leaderboard.SearchQueryEntry
Constructor for SearchQueryEntry
SearchQueryEntryAdapter - Class in com.cmput301w23t09.qrhunter.leaderboard
ArrayAdapter for search query entries
SearchQueryEntryAdapter(Context, List<SearchQueryEntry>) - Constructor for class com.cmput301w23t09.qrhunter.leaderboard.SearchQueryEntryAdapter
Constructor for the SearchQueryEntryAdapter
setBody(Fragment) - Method in class com.cmput301w23t09.qrhunter.GameController
Set the current body fragment to another fragment or null to show no fragment.
setCameraFields(ExecutorService, ImageCapture) - Method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoController
Once the camera use case is set, the LocationPhotoController needs to know the ImageCapture use case and the CameraExecutor
setComments(ArrayList<Comment>) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
This sets the comments on the QR code
setDeviceId(UUID) - Method in class com.cmput301w23t09.qrhunter.player.Player
Set the device id associated with this player
setDocumentId(String) - Method in class com.cmput301w23t09.qrhunter.player.Player
Change the firebase document id associated with this player
setEmail(String) - Method in class com.cmput301w23t09.qrhunter.player.Player
Change the email associated with this player
setFollowers(List<UUID>) - Method in class com.cmput301w23t09.qrhunter.player.Player
Set the device ids that this player is being followed by
setFollowing(List<UUID>) - Method in class com.cmput301w23t09.qrhunter.player.Player
Set the device ids that this player is following
setIsFilteredByFollowedPlayers(boolean) - Method in class com.cmput301w23t09.qrhunter.leaderboard.LeaderboardController
Modify whether or not the leaderboards requested should only filter to followed players
setLoc(QRLocation) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
This sets the location of the QR code
setLocations(ArrayList<QRLocation>) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
Sets the locations of the QR code
setPhoneNo(String) - Method in class com.cmput301w23t09.qrhunter.player.Player
Change the phone number associated with this player
setPhoto(Bitmap) - Method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhoto
This sets the image of the photo, given a Bitmap
setPhoto(ImageProxy) - Method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhoto
This sets the image of the photo, given an ImageProxy
setPhotos(ArrayList<LocationPhoto>) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
This sets the photos of the QR code
setPlayers(ArrayList<String>) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCode
This sets the players who have scanned the QR code
setPopup(DialogFragment) - Method in class com.cmput301w23t09.qrhunter.GameController
Change the current popup fragment.
setQRCodeHashes(List<String>) - Method in class com.cmput301w23t09.qrhunter.player.Player
Sets the list of QR code hashes that have been scanned by player
setQrToLastLocation(QRCode) - Method in class com.cmput301w23t09.qrhunter.map.LocationHandler
Sets the provided QRCode to the device's last known location
setUpButtons(View) - Method in class com.cmput301w23t09.qrhunter.qrcode.AddQRCodeFragment
 
setUpButtons(View) - Method in class com.cmput301w23t09.qrhunter.qrcode.DeleteQRCodeFragment
 
setUpButtons(View) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
Enable and disable buttons of QRCodeFragment
setupCamera(ListenableFuture<ProcessCameraProvider>) - Method in class com.cmput301w23t09.qrhunter.scanqr.camera.CameraController
Adds in the camera's functionality
setupCamera(ListenableFuture<ProcessCameraProvider>) - Method in class com.cmput301w23t09.qrhunter.scanqr.camera.CameraLocationPhotoController
Enables the camera to take photos using the ImageCapture use case
setupCamera(ListenableFuture<ProcessCameraProvider>) - Method in class com.cmput301w23t09.qrhunter.scanqr.camera.CameraScannerController
Enables the camera to scan for QR codes using the ImageAnalysis use case
setupFollowDetails(TextView, TextView, FloatingActionButton, FloatingActionButton, FloatingActionButton) - Method in class com.cmput301w23t09.qrhunter.profile.ProfileController
Sets up the follow buttons and t ext
setUpQRList(GridView, TextView, TextView, TextView, Spinner) - Method in class com.cmput301w23t09.qrhunter.profile.ProfileController
Sets up the list view of qr codes
setupSocialMethods() - Method in class com.cmput301w23t09.qrhunter.profile.MyProfileFragment
 
setupSocialMethods() - Method in class com.cmput301w23t09.qrhunter.profile.OtherProfileFragment
 
setupSocialMethods() - Method in class com.cmput301w23t09.qrhunter.profile.ProfileFragment
Sets the social related buttons.
setUpUsernameAndPicture(TextView, ImageView) - Method in class com.cmput301w23t09.qrhunter.profile.ProfileController
This sets up the username view and profile pic view of the fragment
setUsername(String) - Method in class com.cmput301w23t09.qrhunter.player.Player
Change the username associated with this player
showLandingPage() - Method in class com.cmput301w23t09.qrhunter.LandingActivity
Switch the current view contents to the landing page.
showMsg(String) - Method in class com.cmput301w23t09.qrhunter.profile.ProfileController
This displays a Toast message
startCamera() - Method in class com.cmput301w23t09.qrhunter.scanqr.camera.CameraController
Starts the camera and binds it's preview to the PreviewView UI element.

T

tabLayout - Variable in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
 
takeLocationPhotoBtn - Variable in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
 
takePhoto() - Method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoController
Takes a picture and adds it to the QRCode
toggleCommentBox(boolean) - Method in class com.cmput301w23t09.qrhunter.qrcode.AddQRCodeFragment
 
toggleCommentBox(boolean) - Method in class com.cmput301w23t09.qrhunter.qrcode.DeleteQRCodeFragment
 
toggleCommentBox(boolean) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
Toggles whether or not the comment box should be shown or not.
topScore - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileController
This is the view showing the top score of the player's qr codes
totalCodes - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileController
This is the view showing the total number of codes the player has
totalPoints - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileController
This is the view that shows the qr codes of the player
Tuple<A,​B> - Class in com.cmput301w23t09.qrhunter.util
Tuple data structure to represent a pair
Tuple(A, B) - Constructor for class com.cmput301w23t09.qrhunter.util.Tuple
 

U

unfollow(Player, Player, DatabaseConsumer<Void>) - Method in class com.cmput301w23t09.qrhunter.player.PlayerDatabase
Unfollow the playerToUnfollow as the player
unfollowButton - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileController
 
unfollowButton - Variable in class com.cmput301w23t09.qrhunter.profile.ProfileFragment
 
update(Player, DatabaseConsumer<Void>) - Method in class com.cmput301w23t09.qrhunter.player.PlayerDatabase
Update a player that already exists in the database.
updateFollowDetails() - Method in class com.cmput301w23t09.qrhunter.profile.MyProfileController
 
updateFollowDetails() - Method in class com.cmput301w23t09.qrhunter.profile.OtherProfileController
 
updateFollowDetails() - Method in class com.cmput301w23t09.qrhunter.profile.ProfileController
Updates the text and following/followers count of the follow related content in the view.
updateLocationPhoto() - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCodeFragment
Updates the locationPhoto image view to show the newly-captured location photo
updateQRCode(QRCode, DatabaseConsumer<Void>) - Method in class com.cmput301w23t09.qrhunter.qrcode.QRCodeDatabase
Update a QRCode that already exists in the database.
uploadPhoto(QRCode, LocationPhoto, Consumer<Boolean>) - Method in class com.cmput301w23t09.qrhunter.locationphoto.LocationPhotoStorage
Uploads a location photo

V

ValidationUtils - Class in com.cmput301w23t09.qrhunter.util
Utility class to validate various inputs.
VisualFetcher - Class in com.cmput301w23t09.qrhunter.util
Fetches QRCode's visual representation and profile pictures from DiceBear (https://www.dicebear.com) License: MIT
VisualFetcher() - Constructor for class com.cmput301w23t09.qrhunter.util.VisualFetcher
 
A B C D F G H I L M N O P Q R S T U V 
All Classes All Packages