@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 types

enum EntityQuery.KindThe three lookups an entity type can offer.

Methods

public abstract EntityQuery.Kind value()Which lookup this method provides.

Method details

value

public abstract EntityQuery.Kind value()
Which lookup this method provides. Required.