public interface EntitySelectionHandler

Receives the tap on a piece of content this application published to device search with Intents.index.

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.

Methods

public abstract void onEntitySelected(AppEntity entity)Invoked on the event dispatch thread when the user opened an indexed item.

Method details

onEntitySelected

public abstract void onEntitySelected(AppEntity entity)
Invoked on the event dispatch thread when the user opened an indexed item.

Parameters

entity AppEntity
the type and id that were indexed