SMS User Consent API gives the content of a single SMS message to us if the user gives permission. For this, a bottom sheet will show on the screen and ask the user for permission access to SMS.
I explained step by step usage of SMS User Consent API on my blog post. You can check on it.