BaseMessageCreateParams

@objc(SBDBaseMessageCreateParams)
public class BaseMessageCreateParams : NSObject, Codable, NSCopying

Represents the base class which has parameters to create a channel.

The UserMessageCreateParams, the FileMessageCreateParams are derived from this class.

  • Message data. The default value is nil.

    Since

    3.0.90

    Declaration

    Swift

    @objc
    public var data: String?
  • Customize message’s type to filter. The default value is nil.

    Since

    3.0.90

    Declaration

    Swift

    @objc
    public var customType: String?
  • The push notification delivery option that determines how to deliver the push notification when sending a user or a file message. The default value is .default.

    Declaration

    Swift

    @objc
    public var pushNotificationDeliveryOption: PushNotificationDeliveryOption
  • Meta array with keys and values

    Since

    3.0.179

    Declaration

    Swift

    @objc
    public var metaArrays: [MessageMetaArray]?
  • Mention type

    Since

    3.0.103

    Declaration

    Swift

    @objc
    public var mentionType: MentionType
  • Mention to specific users with user IDs. If sends a message with this field, the message will be arrived to mentioned users.

    Since

    3.0.90

    Declaration

    Swift

    @objc
    public var mentionedUserIds: [String]? { get set }
  • Mention to specific users with user objects.

    Since

    4.0.0

    Declaration

    Swift

    @objc
    public var mentionedUsers: [User]? { get set }
  • Adds user IDs for mention

    Declaration

    Swift

    @objc
    public func addMentionedUserIds(_ userIds: [String])

    Parameters

    userIds

    list of user IDs

  • The unique ID of a parent message. The default value is 0.

    Since

    3.0.181

    Declaration

    Swift

    @objc
    public var parentMessageId: Int64
  • Determines if a threaded message is also replied to the channel. Default is false

    Since

    3.0.236

    Declaration

    Swift

    @objc
    public var isReplyToChannel: Bool
  • Push notification options for the Apple critical alert. The default value is nil.

    Since

    3.0.221

    Declaration

    Swift

    @objc
    public var appleCriticalAlertOptions: AppleCriticalAlertOptions?
  • Custom payload

    Declaration

    Swift

    @objc
    public var payload: [String : Any]
  • Default constructor.

    Declaration

    Swift

    public override init()
  • Copies this object

    Declaration

    Swift

    @objc
    public func copy(with zone: NSZone? = nil) -> Any

    Parameters

    zone

    optional NSZone

    Return Value

    BaseMessageCreateParams instance

  • Encodes this object.

    Declaration

    Swift

    public func encode(to encoder: Encoder) throws

    Parameters

    encoder

    Encoder instance

  • Default constructor.

    Declaration

    Swift

    public required init(from decoder: Decoder) throws

    Parameters

    decoder

    Decoder instance