public interface

UrlHandler

com.salesforce.marketingcloud.UrlHandler

Class Overview

This interface will be called when a message is received from the Marketing Cloud servers and contains a URL.

Summary

Nested Classes
@interface UrlHandler.UrlSource  
Constants
String ACTION The URL was sent via an In-App Message button action.
Public Methods
abstract PendingIntent handleUrl(Context context, String url, String urlSource)
This method should return the PendingIntent you wish to have execute when a message, or message action with a url is to be displayed.

Constants

public static final String ACTION

The URL was sent via an In-App Message button action.

Constant Value: "action"

Public Methods

public abstract PendingIntent handleUrl (Context context, String url, String urlSource)

This method should return the PendingIntent you wish to have execute when a message, or message action with a url is to be displayed.

Parameters
context Application Context.
url The URL.
urlSource The source of the URL.
Returns
  • the PendingIntent which will handle the message URL. null values will result in no action for the URL.