Checking Permissions Status

Pngme's Data SDK allows the developer to get information about the user's
permission flow while using the app.

To get information about the user's permission status, you can call the 1checkPermissionFLow()` method.

fun checkPermissionFlow(context: Context): String

This returns a String with the state of the permission status.

There are 3 possible states:

"CLOSE FLOW"
"NEVER ASK AGAIN"
"NO ACTION PERFORMED"
  • The CLOSE FLOW state is returned when the user taps the close button in the initial flow of the SDK:
  • The NEVER ASK AGAIN state is returned when the user has selected Don’t/Never Ask Again from SDK flow
  • The NO ACTION PERFORMED` state will be returned when the user hasn't performed any action in the SDK flow