com.android.tools.lint.detector.api
Interface Detector.BinaryResourceScanner

Enclosing class:
Detector

public static interface Detector.BinaryResourceScanner

Specialized interface for detectors that scan binary resource files


Method Summary
 boolean appliesTo(com.android.resources.ResourceFolderType folderType)
          Returns whether this detector applies to the given folder type.
 void checkBinaryResource(ResourceContext context)
          Called for each resource folder
 

Method Detail

checkBinaryResource

void checkBinaryResource(@NonNull
                         ResourceContext context)
Called for each resource folder

Parameters:
context - the context for the resource file

appliesTo

boolean appliesTo(@NonNull
                  com.android.resources.ResourceFolderType folderType)
Returns whether this detector applies to the given folder type. This allows the detectors to be pruned from iteration, so for example when we are analyzing a string value file we don't need to look up detectors related to layout.

Parameters:
folderType - the folder type to be visited
Returns:
true if this detector can apply to resources in folders of the given type