You can provide the backup methods when initializing the Portal main object.
method
: The backup method to register. Supported methods:.GoogleDrive
: Google Drive storage.iCloud
: iCloud storage.Password
: Password-protected storage.Passkey
: Passkey authentication storage.local
: Local storage.Unknown
: Can be used for custom storage
withStorage
: A custom implementation ofPortalStorage
protocol that handles the storage operations for the specified backup method
- Each backup method must have a registered storage implementation before it can be used for backup or recovery operations
- This method should be called before attempting any backup or recovery operations with the corresponding method
PortalStorage
protocol: