ARTDataEncoder

Objective-C

@interface ARTDataEncoder : NSObject

Swift

class ARTDataEncoder : NSObject

ARTDataEncoder is used to:

  • convert the data property of an ARTMessage into a format that’s suitable to be sent over the wire; that is, to ensure that this ARTMessage can be placed inside an ARTProtocolMessage
  • convert the data property of an ARTMessage contained inside an ARTProtocolMessage into something that’s suitable to expose to the user of the SDK
  • Undocumented

    Declaration

    Objective-C

    - (instancetype)initWithCipherParams:(ARTCipherParams *_Nullable)params logger:(ARTInternalLog *)logger error:(NSError *_Nullable*_Nullable)error;

    Swift

    init(cipherParams params: ARTCipherParams?, logger: InternalLog, error: NSErrorPointer)
  • Undocumented

    Declaration

    Objective-C

    - (ARTDataEncoderOutput *)encode:(id _Nullable)data;

    Swift

    func encode(_ data: Any?) -> ARTDataEncoderOutput
  • Undocumented

    Declaration

    Objective-C

    - (ARTDataEncoderOutput *)decode:(id _Nullable)data encoding:(NSString *_Nullable)encoding;

    Swift

    func decode(_ data: Any?, encoding: String?) -> ARTDataEncoderOutput
  • Undocumented

    Declaration

    Objective-C

    - (ARTDataEncoderOutput *)decode:(id _Nullable)data identifier:(NSString *)identifier encoding:(NSString *_Nullable)encoding;

    Swift

    func decode(_ data: Any?, identifier: String, encoding: String?) -> ARTDataEncoderOutput