public class

AppEventList

extends Object
implements Serializable
java.lang.Object
   ↳ com.salesforce.android.chat.core.model.AppEventList

Class Overview

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.

Summary

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<StringString> getPaths()
String getScheme()
void setScheme(String scheme)
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AppEventList (String scheme)

Initializer for generating a matching scheme for AppEvent URLs

Parameters
scheme the matching scheme to be applied against all incoming URLs.

Public Methods

public Boolean addDescriptionForExpression (String expression, String description)

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.

Parameters
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.

public Boolean addDescriptionForPath (String path, String description)

Add a description to be associated with the matched URL.

Parameters
path The specific path on the URL which to associate with the description.
description The description for the associated URL.

public LinkedHashMap<StringString> getPaths ()

public String getScheme ()

public void setScheme (String scheme)