registerBackupMethod
Registers a storage implementation for a specific backup method.
You can provide the backup methods when initializing the Portal main object.
Function Signature
Parameters
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
Notes
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
Example Usage
Custom Storage Implementation
When implementing a custom storage solution, your class must conform to the PortalStorage
protocol:
Related Documentation
For more information about backup methods, see:
Last updated
Was this helpful?