xxxxxxxxxx
//TODO ask for permission of camera upon first launch of application
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
if (checkSelfPermission(Manifest.permission.CAMERA) == PackageManager.PERMISSION_DENIED
) {
val permission = arrayOf(
Manifest.permission.CAMERA
)
requestPermissions(permission, 1122)
} else {
//TODO show live camera footage
}
}else{
//TODO show live camera footage
}