public final class SyncOptions
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SyncOptions.ErrorFormatMode |
static class |
SyncOptions.EvaluationMode |
Modifier and Type | Method and Description |
---|---|
static java.lang.Integer |
buildModelOnlyVersion(ProjectOptions options)
Returns the level of model-only mode.
|
static SyncOptions.ErrorFormatMode |
getErrorFormatMode(ProjectOptions options) |
static SyncOptions.EvaluationMode |
getModelQueryMode(ProjectOptions options) |
public static SyncOptions.EvaluationMode getModelQueryMode(@NonNull ProjectOptions options)
public static SyncOptions.ErrorFormatMode getErrorFormatMode(@NonNull ProjectOptions options)
@Nullable public static java.lang.Integer buildModelOnlyVersion(@NonNull ProjectOptions options)
The model-only mode is triggered when the IDE does a sync, and therefore we do things a bit differently (don't throw exceptions for instance). Things evolved a bit over versions and the behavior changes. This reflects the mode to use.
options
- the project optionsAndroidProject.MODEL_LEVEL_0_ORIGINAL
,
AndroidProject.MODEL_LEVEL_1_SYNC_ISSUE
,
AndroidProject.MODEL_LEVEL_3_VARIANT_OUTPUT_POST_BUILD
,
AndroidProject.MODEL_LEVEL_4_NEW_DEP_MODEL