Skip to content

Instantly share code, notes, and snippets.

@igorescodro
Created October 6, 2021 17:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save igorescodro/9af633d2ab28582c11c9874e6dcda2df to your computer and use it in GitHub Desktop.
Save igorescodro/9af633d2ab28582c11c9874e6dcda2df to your computer and use it in GitHub Desktop.
val alarmManager: AlarmManager = getSystemService(Context.ALARM_SERVICE) as AlarmManager
val hasPermission: Boolean = alarmManager.canScheduleExactAlarms()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment