# registerContentDetector static method

void registerContentDetector(

1. AssetResourceContentDetector detector

)

Registers a new content detector.

A detector is a function that decides whether a `source` should be treated as inline content.

### Example

    AssetResource.registerContentDetector((source) {
      if (source is String && source.startsWith('{')) return true;
      return false;
    });

## Implementation

    static void registerContentDetector(AssetResourceContentDetector detector) {
      _contentDetectors.add(detector);
    }