TMBObjectEncodable

@protocol TMBObjectEncodable <NSObject>

Tamber Encodable Objects can be parsed to form-encoded strings

  • The root object name to be used when converting this object to/from a form-encoded string.

    Declaration

    Objective-C

    + (nullable NSString *)rootObjectName;

    Swift

    static func rootObjectName() -> String?
  • This maps properties on an object that is being form-encoded into parameter names in the Tamber API.

    Declaration

    Objective-C

    + (nonnull NSDictionary *)propertyNamesToFormFieldNamesMapping;

    Swift

    static func propertyNamesToFormFieldNamesMapping() -> [AnyHashable : Any]
  • You can use this property to add additional fields to an API request that are not explicitly defined by the object’s interface. This can be useful when using beta features that haven’t been added to the Tamber SDK yet.

    Declaration

    Objective-C

    @property (nonatomic, copy) NSDictionary *_Nonnull additionalAPIParameters;

    Swift

    var additionalAPIParameters: [AnyHashable : Any] { get set }