aboutsummaryrefslogtreecommitdiffstats
path: root/main/src/cgeo/geocaching/apps/App.java
blob: 1383809af70981c94c67617dd8bea147b7ed1f23 (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
package cgeo.geocaching.apps;

import cgeo.geocaching.Geocache;

import org.eclipse.jdt.annotation.NonNull;

public interface App {
    public boolean isInstalled();

    /**
     * Whether or not an application can be used as the default navigation.
     */
    public boolean isUsableAsDefaultNavigationApp();

    @NonNull
    public String getName();

    /**
     * @return the unique ID of the application, defined in res/values/ids.xml
     */
    int getId();

    /**
     * Whether or not the app can be used with the given cache (may depend on properties of the cache).
     *
     */
    boolean isEnabled(final Geocache cache);
}