Interface EntitySelectionHandler
public interface EntitySelectionHandler
Receives the tap on a piece of content this application published to device
search with Intents.index(List).
Register one handler, ideally from your init(), so a tap that cold-started
the app is delivered as soon as there is somewhere to deliver it to --
registration drains anything that arrived first.
The entity handed back carries the type and id you indexed under, and nothing else: the platform stores identity, not your object. Load the rest yourself, which is also the moment to notice that the content may have been deleted since it was indexed.
-
Method Summary
Modifier and TypeMethodDescriptionvoidonEntitySelected(AppEntity entity) Invoked on the event dispatch thread when the user opened an indexed item.
-
Method Details
-
onEntitySelected
Invoked on the event dispatch thread when the user opened an indexed item.
Parameters
entity: the type and id that were indexed
-