LCIMTextMessage

Objective-C

@interface LCIMTextMessage : LCIMTypedMessage <LCIMTypedMessageSubclassing>

Swift

class LCIMTextMessage : LCIMTypedMessage, LCIMTypedMessageSubclassing

Text Message.

  • Create a text message.

    Declaration

    Objective-C

    + (nonnull instancetype)messageWithText:(nonnull NSString *)text;

    Swift

    convenience init(text: String)

    Parameters

    text

    The string text.

  • Create a text message.

    Declaration

    Objective-C

    + (nonnull instancetype)messageWithText:(nonnull NSString *)text
                                 attributes:(NSDictionary *_Nullable)attributes;

    Swift

    convenience init(text: String, attributes: [AnyHashable : Any]? = nil)

    Parameters

    text

    The string text.

    attributes

    The custom attributes.