storage.go 383 B

1234567891011121314
  1. package fyne
  2. // Storage is used to manage file storage inside an application sandbox.
  3. // The files managed by this interface are unique to the current application.
  4. type Storage interface {
  5. RootURI() URI
  6. Create(name string) (URIWriteCloser, error)
  7. Open(name string) (URIReadCloser, error)
  8. Save(name string) (URIWriteCloser, error)
  9. Remove(name string) error
  10. List() []string
  11. }