RequestCodes

enum RequestCodes : Enum<RequestCodes>

Class containing the codes used in requesting permissions related to launching activities related to the camera and Gallery of the device.

Since the said operations require integers as codes, they are referenced using their positions in this enumeration declaration, that is, via the property ordinal.

Constructors

RequestCodes
Link copied to clipboard
private fun RequestCodes()
Creates an enumeration class containing the codes used in requesting permissions related to launching activities related to the camera and Gallery of the device.

Entries

REQUEST_CODE_POST_CAMERA
Link copied to clipboard
Request code for launching activities related to the device camera.
REQUEST_CODE_POST_GALLERY
Link copied to clipboard
Request code for launching activities related to the Gallery.

Inherited properties

name
Link copied to clipboard
val name: String
ordinal
Link copied to clipboard
val ordinal: Int