Other Protocols

The following protocols are available globally.

  • A class that can contain foreign members in arbitrary keys.

    When subclassing ForeignMemberContainerClass type, you should call decodeForeignMembers(notKeyedBy:with:) during your Decodable.init(from:) initializer if your subclass has added any new properties.

    Structures should conform to the ForeignMemberContainer protocol instead of this protocol.

    See more

    Declaration

    Swift

    public protocol ForeignMemberContainerClass : AnyObject
  • A skeletal route containing infromation to refresh Route object attributes.

    Declaration

    Swift

    public protocol RouteRefreshSource
  • A skeletal route leg containing infromation to refresh RouteLeg object attributes.

    Declaration

    Swift

    public protocol RouteLegRefreshSource