AWSLexButton

Objective-C

@interface AWSLexButton

Swift

class AWSLexButton

Represents an option to be shown on the client platform (Facebook, Slack, etc.)

Required parameters: [text, value]

  • Text that is visible to the user on the button.

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable text;

    Swift

    var text: String? { get set }
  • The value sent to Amazon Lex when a user chooses the button. For example, consider button text “NYC.” When the user chooses the button, the value sent can be “New York City.”

    Declaration

    Objective-C

    @property (nonatomic, strong) NSString *_Nullable value;

    Swift

    var value: String? { get set }