Annotation Type EntityId


@Retention(CLASS) @Target({METHOD,FIELD}) public @interface EntityId

The stable identifier of an IntentEntity instance. Exactly one per entity type, on a String getter or public field.

This id outlives your process and often your release: the device search index and the system's donated shortcuts both persist it and hand it back later. An id derived from a list position or a content hash will silently start resolving to the wrong object after your data changes, and nothing anywhere will report an error.