Action

@objcMembers
@objc(GetSocialAction)
public final class Action : NSObject

Describe action object.

  • Action type.

    Declaration

    Swift

    public let type: String
  • Action data.

    Declaration

    Swift

    public internal(set) var data: [String : String] { get }
  • Create an action with the specified type.

    Declaration

    Swift

    @objc(actionWithType:data:)
    public static func create(type: String, data: [String : String] = [:]) -> Action

    Parameters

    type

    Action type.

    data

    Attached data.

    Return Value

    New Action instance.

  • Description.

    Declaration

    Swift

    public override var description: String { get }