NotificationCustomizationOptions
com.salesforce.marketingcloud.pushfeature.notifications
This class manages notification customization settings for the SDK. It offers two approaches for customizing push notifications:
Option 1 - Guided Approach: Provide a small icon resource ID at minimum. Optionally add a NotificationLaunchIntentProvider for click handling or a NotificationChannelIdProvider for per-message channel assignment.
Option 2 - Full Control: Supply a NotificationBuilder to manage the complete notification setup, including:
- Creating the
NotificationCompat.Builder - Setting the notification channel
- Routing intents through SDK analytics via
NotificationManager.redirectIntentForAnalytics
The SDK handles notification display in both scenarios.
Provider for determining notification channel IDs on a per-message basis.
Provider for customizing the intent when a notification is clicked.
Custom builder for complete control over notification creation.
Resource ID for the notification’s small icon.
Companion object for the NotificationCustomizationOptions class.
NotificationManager.Companion.getDefaultNotificationBuilderNotificationManager.Companion.createDefaultNotificationChannel