Protocols

The following protocols are available globally.

  • This is the foundational code for custom stylesheet and theme support. This area will likely be the focus of updates & changes over the next several releases, so we would recommend avoiding implementing your own custom stylesheet classes until we have further vetted this implementation. Documentation will be written once we’ve solidified on the protocol requirements and implementation details.

    We do however welcome suggestions / improvements to this API on our github at https://github.com/mapzen/ios

    Declaration

    Swift

    @objc public protocol StyleSheet : class
  • LocationManagerDelegate Protocol

    See more

    Declaration

    Swift

    @objc public protocol LocationManagerDelegate
  • Protocol for LocationManager’s api so that actual implementation can be switched out in testing contexts.

    Declaration

    Swift

    public protocol LocationManagerProtocol : class