EMOobUserMessageAttachment

Objective-C

@protocol EMOobUserMessageAttachment <NSObject>

Swift

protocol EMOobUserMessageAttachment : NSObjectProtocol

Attachment object that can be sent and received by user messages. This comes along with either EMOobProviderToUserMessage or EMOobUserToProviderMessage object in its attachments property.

Locale of the content is defined by the message container.

Since

3.0
  • Gets the subject.

    Since

    3.0

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) id<EMSecureString> subject;

    Swift

    @NSCopying var subject: (any EMSecureString)! { get }

    Return Value

    The subject.

  • Gets the content type.

    Since

    3.0

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSString *contentType;

    Swift

    var contentType: String! { get }

    Return Value

    The content type.

  • Gets the content as secure byte array.

    Since

    3.0

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) id<EMSecureByteArray> content;

    Swift

    var content: (any EMSecureByteArray)! { get }

    Return Value

    The content.

  • Gets message content in form of secure string.

    Since

    3.0

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) id<EMSecureString> contentString;

    Swift

    var contentString: (any EMSecureString)! { get }

    Return Value

    The content.

  • Gets the meta-data.

    Since

    3.0

    Declaration

    Objective-C

    @property (nonatomic, copy, readonly) NSDictionary *meta;

    Swift

    var meta: [AnyHashable : Any]! { get }

    Return Value

    The meta-data.

  • Gets message content in form of secure string in a specific encoding format.

    Since

    3.0

    Declaration

    Objective-C

    - (id<EMSecureString>)contentStringWithEncoding:(NSStringEncoding)encoding;

    Swift

    func contentString(withEncoding encoding: UInt) -> (any EMSecureString)!

    Parameters

    encoding

    A string encoding.

    Return Value

    The content.

  • Wipes all the sensitive data from memory

    Since

    3.0

    Declaration

    Objective-C

    - (void)wipe;

    Swift

    func wipe()