BackupKey

public enum BackupKey: String

An enumeration of keys present in a backup.

  • Whether or not automatic backup is selected:

    • if false then manual backup is selected;
    • if true then automatic backup is selected.

    Automatic backup is triggered by various actions in the app (such as recording a new ascent) and is supported for iCloud but not Dropbox.

    See also

    BackupKey.icloud

    See also

    BackupKey.root

    Declaration

    Swift

    case autobackup
  • Whether or not the user has chosen to use the location reported by their iOS device and accepted a disclaimer that this should not be relied on for navigation:

  • if false then location information is not to be used;
  • if true then location information is to be used.

  • Declaration

    Swift

    case disclaimer
  • The selected unit of measurement for presenting distances:

    • if km then distances are presented in kilometres;
    • if mi then distances are presented in miles.

    Declaration

    Swift

    case distance
  • The email address used by the app’s CSV export feature.

    Declaration

    Swift

    case email
  • The name of the file in which the backup was originally stored on export.

    Declaration

    Swift

    case filename
  • A number seen to be 0 or 1, purpose unknown. Presumably takes other values or would have a boolean.

    Declaration

    Swift

    case filter
  • Part of the map type selection. Indicates whether or not Google maps of some type have been selected in preference to Apple maps.

    See also

    BackupKey.type

    Declaration

    Swift

    case google
  • A hash value, presumably unique to an individual backup and perhaps used to verify its integrity when being restored.

    Declaration

    Swift

    case hash
  • The selected unit of measurement for presenting heights:

    • if ft then heights are presented in feet;
    • if m then heights are presented in metres.

    Declaration

    Swift

    case height
  • Whether iCloud or Dropbox has been selected as the destination for backups.

  • if false then Dropbox is selected (and backups are made manually);
  • if true then iCloud is selected (and backups may be made either automatically or manually).

  • See also

    BackupKey.root

    Declaration

    Swift

    case icloud
  • The latitude component of the location (if any) recorded by the app’s location feature.

    Declaration

    Swift

    case latitude
  • The identifiers of lists tracked by the user, sorted according to the selected sorting specification.

    Declaration

    Swift

    case lists
  • The longitude component of the location (if any) recorded by the app’s location feature.

    Declaration

    Swift

    case longitude
  • Indicates whether or not the app’s feature supporting multiple rounds of ascents has been enabled:

    • if false then multiple rounds are not enabled;
    • if true then multiple rounds are enabled.

    Declaration

    Swift

    case multiple
  • Indicates the ordering of tracked lists on the app’s initial view:

  • if not present then lists are ordered manually by the user;
  • if present and false then lists are sorted by name, in ascending alphabetical order;
  • if present and true then lists are sorted by percentage of hills complete, in descending order.

  • See also

    BackupKey.lists

    Declaration

    Swift

    case percent
  • A boolean value, purpose unknown.

    Declaration

    Swift

    case purged
  • Purpose unknown, observed to be an array of three numbers (all -1).

    Declaration

    Swift

    case restore
  • Presumably indicated whether backups stored in Dropbox were saved to the root folder or to an app-specific folder. Dropbox API changes made in 2017 have probably rendered this option redundant and support for saving in the root folder was removed in Hill Lists version 5.2.

    See also

    BackupKey.icloud

    Declaration

    Swift

    case root
  • The email address used by the app’s location sharing feature.

    Declaration

    Swift

    case share
  • sms

    The phone number used by the app’s location sharing feature.

    Declaration

    Swift

    case sms
  • Indicates how hills are sorted within the view of an individual list’s content:

    • 0 - hills are sorted by section, in ascending order by number;
    • 1 - hills are sorted by name, in ascending alphabetical order;
    • 2 - hills are sorted by height, in descending order;
    • 3 - hills are sorted by distance from the user’s recorded location, in increasing order;
    • 4 - hills are sorted by date of ascent, in decreasing chronological order by oldest ascent, with unknown ascent daes sorting last;
    • 5 - hills are sorted by number of ascents, in increasing order.

    Declaration

    Swift

    case sort
  • Part of the map type selection. Indicates whether or not (if Google maps are selected) the terrain map type is selected.

    See also

    BackupKey.google

    See also

    BackupKey.type

    Declaration

    Swift

    case terrain
  • Presumably the version format of the backup.

    Declaration

    Swift

    case version