...
Code Block |
---|
public class CustomNotificationWorker extends NotificationWorker {
public CustomNotificationWorker(@NonNull Context context,
@NonNull WorkerParameters workerParams) {
super(context, workerParams);
}
@Override
@NonNull
public NotificationConfig getNotificationConfig() {
final FeedConfig feedConfig = new FeedConfig.Builder(getApplicationContext(), App.UNIT_ID_NOTI_PLUS)
.closeToastEnabled(true)
.feedToolbarHolderClass(CustomFeedToolbarHolder::class.java)
.build();
final RewardNotificationConfig rewardNotificationConfig = new RewardNotificationConfig.Builder().build();
return new NotificationConfig.Builder(App.UNIT_ID_PUSH)
.putExtra(FeedActivity.EXTRA_CONFIG, feedConfig)
.build();
}
} |
...