|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
@Beta public interface DirectoryInput
A QualifiedContent of type directory.
QualifiedContent.getFile() is the root directory containing the content.
This also contains incremental data if the transform is in incremental mode through
getChangedFiles().
For a transform to run in incremental mode:
Transform.isIncremental() must return trueTransform.transform(Context, Collection, Collection, TransformOutputProvider, boolean)
must be true.getChangedFiles() will not contain any
information (it will not contain the list of all the files with state
Status.NOTCHANGED.)
When a root level directory is removed, and incremental mode is on, the instance will receive
a DirectoryInput instance for the removed folder, but QualifiedContent.getFile()
will return a directory that does not exist. In this case, the transform should prcess this
as a removed input.
This API is non final and is subject to change. We are looking for feedback, and will
attempt to stabilize it in the 1.6 time frame.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from interface com.android.build.api.transform.QualifiedContent |
|---|
QualifiedContent.ContentType, QualifiedContent.DefaultContentType, QualifiedContent.Scope |
| Method Summary | |
|---|---|
java.util.Map<java.io.File,Status> |
getChangedFiles()
Returns the changed files. |
| Methods inherited from interface com.android.build.api.transform.QualifiedContent |
|---|
getContentTypes, getFile, getName, getScopes |
| Method Detail |
|---|
@NonNull java.util.Map<java.io.File,Status> getChangedFiles()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||