Package com.batch.android
Class BatchNotificationChannelsManager.StringResChannelNameProvider
- java.lang.Object
-
- com.batch.android.BatchNotificationChannelsManager.StringResChannelNameProvider
-
- All Implemented Interfaces:
BatchNotificationChannelsManager.ChannelNameProvider
- Enclosing class:
- BatchNotificationChannelsManager
public static final class BatchNotificationChannelsManager.StringResChannelNameProvider extends java.lang.Object implements BatchNotificationChannelsManager.ChannelNameProvider
Implementation ofBatchNotificationChannelsManager.ChannelNameProviderusing a String resource to automatically fetch the right translation.
-
-
Constructor Summary
Constructors Constructor Description StringResChannelNameProvider(android.content.Context context, int channelNameResourceId)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetDefaultChannelName()The user-facing channel name to return to the system.
If this method throws an exception, Batch will use its default name.
-
-
-
Method Detail
-
getDefaultChannelName
@NonNull public java.lang.String getDefaultChannelName()
Description copied from interface:BatchNotificationChannelsManager.ChannelNameProviderThe user-facing channel name to return to the system.
If this method throws an exception, Batch will use its default name.- Specified by:
getDefaultChannelNamein interfaceBatchNotificationChannelsManager.ChannelNameProvider
-
-