@Test public void clearActions() { DownloadProgressNotification downloadProgressNotification = new DownloadProgressNotification(context); String mapName = UUID.randomUUID().toString(); String mapBoxAccessToken = "sample_access_token"; int requestCode = 89238087; downloadProgressNotification.createInitialNotification(mapName, mapBoxAccessToken, requestCode, true); assertEquals(1, downloadProgressNotification.notificationBuilder.mActions.size()); downloadProgressNotification.clearActions(); assertEquals(0, downloadProgressNotification.notificationBuilder.mActions.size()); }
public void clearActions() { notificationBuilder.mActions.clear(); }
DownloadProgressNotification extends KujakuNotification { public void clearActions() { notificationBuilder.mActions.clear(); } }
DownloadProgressNotification extends KujakuNotification { public void clearActions() { notificationBuilder.mActions.clear(); } DownloadProgressNotification(Context context); }
DownloadProgressNotification extends KujakuNotification { public void clearActions() { notificationBuilder.mActions.clear(); } DownloadProgressNotification(Context context); void createInitialNotification(String mapName, String mapBoxAccessToken, int requestCode, boolean showAction); void updateNotification(double percentageProgress, String mapName, int requestCode, boolean showAction); void displayForegroundNotification(NotificationCompat.Builder notificationBuilder, int notificationId); void displayForegroundNotification(int notificationId); void updateNotificationWithNewMapDownload(String mapName, int requestCode); void displayNotification(int notificationId); void updateNotificationWithDownloadProgress(double percentageProgress); void clearActions(); Intent createStopDownloadIntent(String mapName, String mapBoxAccessToken); }
DownloadProgressNotification extends KujakuNotification { public void clearActions() { notificationBuilder.mActions.clear(); } DownloadProgressNotification(Context context); void createInitialNotification(String mapName, String mapBoxAccessToken, int requestCode, boolean showAction); void updateNotification(double percentageProgress, String mapName, int requestCode, boolean showAction); void displayForegroundNotification(NotificationCompat.Builder notificationBuilder, int notificationId); void displayForegroundNotification(int notificationId); void updateNotificationWithNewMapDownload(String mapName, int requestCode); void displayNotification(int notificationId); void updateNotificationWithDownloadProgress(double percentageProgress); void clearActions(); Intent createStopDownloadIntent(String mapName, String mapBoxAccessToken); static final String CHANNEL_ID; }