Skip to main content
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
    • .Firebase: Firebase Auth Backup storage
    • .local: Local storage
    • .Unknown: Can be used for custom storage
  • withStorage: A custom implementation of PortalStorage 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: