I want to request the Schedule Exact Alarms permission:
@Composable
fun StartServiceButton() {
val context = LocalContext.current
Button(
onClick = {
if (!canUseExactAlarms(context)) {
val intent = Intent(Settings.ACTION_REQUEST_SCHEDULE_EXACT_ALARM).apply {
data = "package:${context.packageName}".toUri()
}
val permissionLauncher = rememberLauncherForActivityResult(
contract = ActivityResultContracts.StartActivityForResult()
) {results ->
null
}
permissionLauncher.launch(intent)
}
}
)
}
And I really feel like this code should work, but it's throwing an error: No value passed for parameter 'content'
What is `content`?
I can't figure it out