|
static final String | SHARED_PREFS_INTERNET_BLOCKLIST_APPS_KEY = "INTERNET_BLOCKLIST_APPS_KEY" |
|
Stores those apps whose access to internet is blocked.
Analogous implementation to TrackerBlocklist.
◆ block()
synchronized void net.kollnig.missioncontrol.data.InternetBlocklist.block |
( |
int |
uid | ) |
|
Block internet for a given app
- Parameters
-
uid | Uid of app to block internet |
◆ blockedInternet()
boolean net.kollnig.missioncontrol.data.InternetBlocklist.blockedInternet |
( |
int |
uid | ) |
|
Check if internet is blocked for given app
- Parameters
-
- Returns
- If internet is blocked for given app
◆ clear()
void net.kollnig.missioncontrol.data.InternetBlocklist.clear |
( |
| ) |
|
◆ getBlocklist()
Set< Integer > net.kollnig.missioncontrol.data.InternetBlocklist.getBlocklist |
( |
| ) |
|
Get set of apps' uids which shan't access internet
- Returns
- Set of uids
◆ getInstance()
static InternetBlocklist net.kollnig.missioncontrol.data.InternetBlocklist.getInstance |
( |
Context |
c | ) |
|
|
static |
◆ loadSettings()
void net.kollnig.missioncontrol.data.InternetBlocklist.loadSettings |
( |
Context |
c | ) |
|
Load past settings
- Parameters
-
◆ unblock()
synchronized void net.kollnig.missioncontrol.data.InternetBlocklist.unblock |
( |
int |
uid | ) |
|
Unblock internet for a given app
- Parameters
-
uid | Uid of app to unblock internet |
The documentation for this class was generated from the following file:
- app/src/main/java/net/kollnig/missioncontrol/data/InternetBlocklist.java