Skip to main content

start_picker

Function start_picker 

Source
pub fn start_picker(
    account: IdentityAccount,
    client: ResolvedClient,
    mstore: Arc<Store>,
    identity_store: Arc<Store>,
) -> Result<(String, OAuthStatus), String>
Expand description

Open Google’s file picker for account in the system browser, with the client the account was made with (a picked file is the client’s to read, so no other client will do). The result is OAuthStatus::Picked; the account’s tokens are not changed. Needs Drive turned on for the account (drive.file granted).