DriveConsent

class DriveConsent(context: ERROR CLASS: Symbol not found for Context)(source)

Google's one-time permission dialog for the app-data folder. Call request; when it returns Request.Needed, launch the IntentSender with ActivityResultContracts.StartIntentSenderForResult and hand the result's data to wasGranted. No Compose dependency: the app owns the launcher.

Constructors

Link copied to clipboard
constructor(context: ERROR CLASS: Symbol not found for Context)

Types

Link copied to clipboard
sealed interface Request

Functions

Link copied to clipboard
Link copied to clipboard
fun wasGranted(resultData: ERROR CLASS: Symbol not found for Intent??): Boolean

Parse the activity result of the consent dialog. False when declined or failed.