Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
SDK
/
exoplayer
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2af9b4b0
authored
May 28, 2020
by
Joris de Groot
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
Updated documentation
parent
86b31e29
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
library/core/src/main/java/com/google/android/exoplayer2/scheduler/Requirements.java
library/core/src/main/java/com/google/android/exoplayer2/scheduler/Requirements.java
View file @
2af9b4b0
...
@@ -39,7 +39,11 @@ public final class Requirements implements Parcelable {
...
@@ -39,7 +39,11 @@ public final class Requirements implements Parcelable {
/**
/**
* Requirement flags. Possible flag values are {@link #NETWORK}, {@link #NETWORK_UNMETERED},
* Requirement flags. Possible flag values are {@link #NETWORK}, {@link #NETWORK_UNMETERED},
* {@link #DEVICE_IDLE} and {@link #DEVICE_CHARGING}.
* {@link #DEVICE_IDLE}, {@link #DEVICE_CHARGING} and {@link #DEVICE_STORAGE_NOT_LOW}.
*
* Note that {@link #DEVICE_STORAGE_NOT_LOW} only works when downloading to internal storage.
* Setting this requirement when downloading to external storage will actually monitor internal
* storage and can lead to unexpected results.
*/
*/
@Documented
@Documented
@Retention
(
RetentionPolicy
.
SOURCE
)
@Retention
(
RetentionPolicy
.
SOURCE
)
...
@@ -56,7 +60,7 @@ public final class Requirements implements Parcelable {
...
@@ -56,7 +60,7 @@ public final class Requirements implements Parcelable {
public
static
final
int
DEVICE_IDLE
=
1
<<
2
;
public
static
final
int
DEVICE_IDLE
=
1
<<
2
;
/** Requirement that the device is charging. */
/** Requirement that the device is charging. */
public
static
final
int
DEVICE_CHARGING
=
1
<<
3
;
public
static
final
int
DEVICE_CHARGING
=
1
<<
3
;
/** Requirement that the storage is not low. */
/** Requirement that the
device internal
storage is not low. */
public
static
final
int
DEVICE_STORAGE_NOT_LOW
=
1
<<
4
;
public
static
final
int
DEVICE_STORAGE_NOT_LOW
=
1
<<
4
;
@RequirementFlags
private
final
int
requirements
;
@RequirementFlags
private
final
int
requirements
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment