Interface NotificationChannelProvider

All Known Implementing Classes:
NotificationChannelProviderImpl

public interface NotificationChannelProvider
Service that allows to get information about notification channels available in application
  • Method Details

    • getAllChannelNames

      List<String> getAllChannelNames()
      Provides names of all notification channels.
      Returns:
      list of channel names
    • getAllChannels

      List<NotificationChannel> getAllChannels()
      Provides all notification channels
      Returns:
      list of channel objects
    • getChannelByNameOpt

      Optional<NotificationChannel> getChannelByNameOpt(String channelName)
      Tries to get notification channel by provided name.
      Parameters:
      channelName - channel name
      Returns:
      Optional with found notification channel or empty Optional if channel with provided name not found