Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b71f25e5 authored by Arthur Ishiguro's avatar Arthur Ishiguro Committed by Android (Google) Code Review
Browse files

Merge "Clarifies requirements of registerIntent API"

parents 5af89dfb d2dc0fef
Loading
Loading
Loading
Loading
+9 −6
Original line number Diff line number Diff line
@@ -105,12 +105,15 @@ public class ContextHubClient implements Closeable {
     *
     * This method should be used if the caller wants to receive notifications even after the
     * process exits. The client must have an open connection with the Context Hub Service (i.e. it
     * cannot have been closed through the {@link #close()} method). If registered successfully,
     * intents will be delivered regarding events for the specified nanoapp from the attached
     * Context Hub. Any unicast messages for this client will also be delivered. The intent will
     * have an extra {@link #EXTRA_EVENT_TYPE} of type {@link ContextHubManager.Event}, which will
     * contain the type of the event. See {@link ContextHubManager.Event} for description of each
     * event type.
     * cannot have been closed through the {@link #close()} method). Only one PendingIntent can be
     * registered at a time for a single ContextHubClient. If registered successfully, intents will
     * be delivered regarding events for the specified nanoapp from the attached Context Hub. Any
     * unicast messages for this client will also be delivered. The intent will have an extra
     * {@link ContextHubManager.EXTRA_CONTEXT_HUB_INFO} of type {@link ContextHubInfo}, which
     * describes the Context Hub the intent event was for. The intent will also have an extra
     * {@link ContextHubManager.EXTRA_EVENT_TYPE} of type {@link ContextHubManager.Event}, which
     * will contain the type of the event. See {@link ContextHubManager.Event} for description of
     * each event type, along with event-specific extra fields.
     *
     * When the intent is received, this client can be recreated through
     * {@link ContextHubManager.createClient(PendingIntent, ContextHubInfo,