java.lang.Object | |
↳ | com.salesforce.android.chat.core.model.AppEventList |
The AppEventList allows for matching specific schemes of URLs which may be received remotely. When a matching URL is detected it is removed from the original message, and results in a URL event which is flagged as being an AppEvent.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AppEventList(String scheme)
Initializer for generating a matching scheme for AppEvent URLs
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Boolean |
addDescriptionForExpression(String expression, String description)
Add a description to be associated with the matched URL.
| ||||||||||
Boolean |
addDescriptionForPath(String path, String description)
Add a description to be associated with the matched URL.
| ||||||||||
LinkedHashMap<String, String> | getPaths() | ||||||||||
String | getScheme() | ||||||||||
void | setScheme(String scheme) |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Initializer for generating a matching scheme for AppEvent URLs
scheme | the matching scheme to be applied against all incoming URLs. |
---|
Add a description to be associated with the matched URL. Matching will occur in the order that the descriptions are added. You should add patterns in order: from the most specific to the most generic. For example if you add ".*" as an expression first, that will always match all paths provided on this instance. Note: Expressions are given priority when returning an associated description. It is recommended to use either direct path matching, or regex matching. Not both.
expression | The regex expression which will be used to match against a provided url. |
---|---|
description | The description for the associated URL. The pattern must be a valid regex expression or it will be ignored. |
Add a description to be associated with the matched URL.
path | The specific path on the URL which to associate with the description. |
---|---|
description | The description for the associated URL. |