Welcome back.
We created has permission and launcher variables.
Now let's use them by the UI.
Create a box layout.
Set the modifier to modifier dot fill maximum size and inside this box if has permission then what we
need to do set the on granted and call it.
If not, what we need to do, we need to create a new column.
Inside this column, set the horizontal alignment to center horizontally and vertical alignment or arrangement
arrangement dot center okay alt plus enter here the alignment and here we go.
And by the way we need to set for the box alignment.
So here content alignment alignment dot center.
Then scroll down to here.
We need to uh create two two Composables the text and the button.
Uh the text camera permission required.
Set a spacer between the text and the button, import the DP and set a button on.
Click.
What we need to do.
We need to launch the launcher.
So launcher dot launch manifest camera and set another composable inside this button saying that request
or grant the grant camera permission.
So when the user clicks the button we request the camera permission granted.