ActivityContent

@objcMembers
@objc(GetSocialActivityContent)
public final class ActivityContent : NSObject

Describe Activity content.

  • Text content.

    Declaration

    Swift

    public var text: String?
  • Attachments, like image and video.

    Declaration

    Swift

    public var attachments: [MediaAttachment]
  • Activity button.

    Declaration

    Swift

    public var button: ActivityButton?
  • Custom properties.

    Declaration

    Swift

    public var properties: [String : String]
  • Declaration

    Swift

    public var poll: PollContent?
  • Declaration

    Swift

    public var labels: [String]
  • Set property.

    Declaration

    Swift

    @objc(setPropertyValue:forKey:)
    public func setProperty(value: String, forKey: String)

    Parameters

    value

    Value to set.

    forKey

    Key for the value.

  • Append media attachment.

    Declaration

    Swift

    @objc(appendMediaAttachment:)
    public func appendMediaAttachment(_ attachment: MediaAttachment)

    Parameters

    attachment

    Media attachment.

  • Description.

    Declaration

    Swift

    public override var description: String { get }