OMCMessageAction Class Reference
| Inherits from | NSObject |
|---|---|
| Declared in | OMCMessageAction.h |
actionId
The unique identifier representing the action.
@property (readonly, nullable) NSString *actionIdDeclared In
OMCMessageAction.h
type
The type of action.
@property (nullable) NSString *typeDiscussion
Valid types include OMCMessageActionTypeLink for regular actions, and OMCMessageActionTypeBuy for buy actions.
Declared In
OMCMessageAction.h
text
The text to display as a descriptor for the action.
@property (nullable) NSString *textDiscussion
May not be nil.
Declared In
OMCMessageAction.h
uri
The URI to navigate to if the user interacts with the action.
@property (nullable) NSURL *uriDiscussion
May not be nil if message is of type OMCMessageActionTypeLink or OMCMessageActionTypeWebview
Declared In
OMCMessageAction.h
fallback
Fallback URI to use for action types not supported by the SDK. May be nil.
@property (nullable) NSURL *fallbackDeclared In
OMCMessageAction.h
size
The size of a webview
@property (nullable, copy) NSString *sizeDiscussion
May not be nil if message is of type OMCMessageActionTypeWebview
Declared In
OMCMessageAction.h
isDefault
Boolean value indicating whether this action is the default action for an OMCMessageItem
@property (readonly) BOOL isDefaultDiscussion
Default value is NO
See Also
Declared In
OMCMessageAction.h
metadata
Metadata associated with the action.
@property (nullable) NSDictionary *metadataDiscussion
A flat dictionary of metadata set through the REST API. May be nil.
Declared In
OMCMessageAction.h
iconUrl
Icon to display with a reply
@property (nullable) NSString *iconUrlDiscussion
An icon to render next to the reply option
Declared In
OMCMessageAction.h
payload
The payload of actions with type OMCMessageActionTypeReply or OMCMessageActionTypePostback
@property (nullable) NSString *payloadDiscussion
The payload of actions with type OMCMessageActionTypeReply or OMCMessageActionTypePostback, if applicable. May be nil
Declared In
OMCMessageAction.h
state
The purchase state of the action
@property (nullable) NSString *stateDiscussion
This property is only non-nil for actions of type OMCMessageActionTypeBuy. Valid states include OMCMessageActionStateOffered and OMCMessageActionStatePaid.
Declared In
OMCMessageAction.h
amount
The amount of money to charge for the action.
@property long amountDiscussion
This property is only valid for actions of type OMCMessageActionTypeBuy. For USD, this value is in cents.
Declared In
OMCMessageAction.h
currency
The currency in which the amount is expressed.
@property (nullable) NSString *currencyDiscussion
This property is only valid for actions of type OMCMessageActionTypeBuy.
Declared In
OMCMessageAction.h