Package com. pda. screenshotmatcher2. utils
Utility classes.
Types
Compare Sizes By Area
Link copied to clipboard
Comparator, which compares two Sizes and returns the bigger one.
Functions
base64To Bitmap
Link copied to clipboard
create Device ID
Link copied to clipboard
Creates a new device ID if the app is running for the very first time.
create Sharing Chooser
Link copied to clipboard
fun createSharingChooser(file: File, mimeType: MimeType, activity: Activity)
Content copied to clipboard
Creates a sharing chooser with the given file.
decode Base64
Link copied to clipboard
Decodes a b64String to a Bitmap and returns it.
get Date String
Link copied to clipboard
Returns the current date/time.
get Device ID
Link copied to clipboard
Returns the device ID.
get Device Name
Link copied to clipboard
Returns the devices model name.
get Permissions
Link copied to clipboard
Returns all required permissions for the app.
rotate Bitmap
Link copied to clipboard
save Bitmap To File
Link copied to clipboard
save Image File To Gallery
Link copied to clipboard
fun saveImageFileToGallery(file: File, description: String, context: Context)
Content copied to clipboard
to Grayscale
Link copied to clipboard
Converts a bitmap to grayscale and returns it
verify Permissions
Link copied to clipboard
Verifies if activity has been granted all permissions of getPermissions. Automatically requests the missing permissions if necessary.