blob: 4b1cfdc78c1f8e92c3f5cc329167be3d75b33c5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
package de.danoeh.antennapod.fragment.swipeactions;
import android.content.Context;
import androidx.annotation.AttrRes;
import androidx.annotation.DrawableRes;
import androidx.fragment.app.Fragment;
import de.danoeh.antennapod.model.feed.FeedItem;
import de.danoeh.antennapod.model.feed.FeedItemFilter;
public interface SwipeAction {
String ADD_TO_QUEUE = "ADD_TO_QUEUE";
String REMOVE_FROM_INBOX = "REMOVE_FROM_INBOX";
String START_DOWNLOAD = "START_DOWNLOAD";
String MARK_FAV = "MARK_FAV";
String TOGGLE_PLAYED = "MARK_PLAYED";
String REMOVE_FROM_QUEUE = "REMOVE_FROM_QUEUE";
String DELETE = "DELETE";
String REMOVE_FROM_HISTORY = "REMOVE_FROM_HISTORY";
String getId();
String getTitle(Context context);
@DrawableRes
int getActionIcon();
@AttrRes
int getActionColor();
void performAction(FeedItem item, Fragment fragment, FeedItemFilter filter);
boolean willRemove(FeedItemFilter filter, FeedItem item);
}
|