# Annotation Type EntityQuery

@Retention(CLASS) @Target(METHOD) public @interface EntityQuery

Marks a `public static` method as one of an `IntentEntity`'s lookups.

These are the methods the platform calls on its own, before your handler runs, to resolve or disambiguate an entity-typed parameter. They can be invoked while your app has no UI, so treat them as data lookups: no `Form`, no `Dialog`, and quick enough that a user waiting on a picker does not notice.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static enum`
  `EntityQuery.Kind`
  The three lookups an entity type can offer.

- ## Required Element Summary

  Required Elements
  Modifier and Type
  Required Element
  Description
  `EntityQuery.Kind`
  `value`
  Which lookup this method provides.

- ## Element Details

  - ### value

    EntityQuery.Kind value
    Which lookup this method provides. Required.