@FunctionalInterface
public interface ResourceVisitor
| Modifier and Type | Interface and Description |
|---|---|
static class |
ResourceVisitor.VisitResult |
| Modifier and Type | Method and Description |
|---|---|
default boolean |
shouldVisitNamespace(com.android.ide.common.rendering.api.ResourceNamespace namespace)
Checks if resources belonging to the given namespace should be visited or not
|
default boolean |
shouldVisitResourceType(com.android.resources.ResourceType resourceType)
Checks if resources of the given type should be visited or not
|
ResourceVisitor.VisitResult |
visit(ResourceItem resourceItem)
Called for each resource.
|
@NonNull ResourceVisitor.VisitResult visit(@NonNull ResourceItem resourceItem)
resourceItem - the resource to visitResourceVisitor.VisitResult.CONTINUE to continue visiting resources,
ResourceVisitor.VisitResult.ABORT to stop visitingdefault boolean shouldVisitNamespace(@NonNull
com.android.ide.common.rendering.api.ResourceNamespace namespace)
namespace - the namespace to checkdefault boolean shouldVisitResourceType(@NonNull
com.android.resources.ResourceType resourceType)
resourceType - the resource type to check