preferences_ios.go 499 B

123456789101112131415161718192021222324
  1. //go:build ios
  2. // +build ios
  3. package app
  4. import (
  5. "path/filepath"
  6. )
  7. import "C"
  8. // storagePath returns the location of the settings storage
  9. func (p *preferences) storagePath() string {
  10. ret := filepath.Join(p.app.storageRoot(), "preferences.json")
  11. return ret
  12. }
  13. // storageRoot returns the location of the app storage
  14. func (a *fyneApp) storageRoot() string {
  15. return rootConfigDir() // we are in a sandbox, so no app ID added to this path
  16. }
  17. func (p *preferences) watch() {
  18. // no-op on mobile
  19. }