Marketing Cloud SDK / com.salesforce.marketingcloud / UrlHandler / handleUrl

handleUrl

@Nullable abstract fun handleUrl(@NonNull context: Context, @NonNull url: String, @NonNull urlSource: String): PendingIntent?

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 - Context: Application Context.

url - String: The URL.

urlSource - String: The source of the URL.

Return
PendingIntent?: the PendingIntent which will handle the message URL. null values will result in no action for the URL.