Configures Google Drive settings for the SDK with a specified backup option.
clientId
: The client ID for the Google Drive integration. Obtained from Google Cloud Console.backupOption
: An option from the GDriveBackupOption
enum that specifies the backup/recover storage type:
.appDataFolder
: Stores backups in the hidden, app-specific “App Data Folder” in Google Drive. This folder is not visible to the user..appDataFolderWithFallback
: Attempts to store backups and recover using the “App Data Folder”. If recovery fails, it automatically falls back to a user-visible Google Drive folder..gdriveFolder(folderName: String)
: Stores backups in a user-visible folder in Google Drive with the specified folderName
.appDataFolder
and appDataFolderWithFallback
options are supported starting from SDK version 4.2.0appDataFolder
to keep wallet backups hidden from users (recommended)gdriveFolder
to allow wallet backups to be seen and modified by the user