Context notifications
First Claim
1. A method comprising:
- generating, by a context daemon executing on a computing device, information describing a current context of the computing device;
receiving, by the context daemon, a callback request from a context client process that specifies a predicate for sending a notification to the context client process, the predicate specifying context conditions for calling back the context client process;
generating, by the context daemon, a unique identifier for the callback request;
sending, by the context daemon, the unique identifier to the context client process upon receiving the callback request prior to detecting that the current context corresponds to the predicate;
detecting, by the context daemon, that the current context corresponds to the predicate; and
in response to the detecting, sending, by the context daemon, a callback notification to the context client process, wherein the callback notification includes the unique identifier for the callback request, wherein the context daemon uses the unique identifier to notify the context client that the predicate for the callback request has been satisfied.
1 Assignment
0 Petitions
Accused Products
Abstract
Disclosed are systems, methods, and non-transitory computer-readable storage media for notifying context clients of changes to the current context of a computing device. In some implementations, a context client can register to be called back when the context daemon detects specified context. For example, the context client can specify a context in which the context client is interested. When the context daemon detects that the current context of the computing device corresponds to the registered context, the context daemon can notify the context client that the current context matches the context in which the context client is interested. Thus, context clients do not require the programming necessary to independently obtain context updates and detect changes in context that are relevant or of interest to the context client.
142 Citations
20 Claims
-
1. A method comprising:
-
generating, by a context daemon executing on a computing device, information describing a current context of the computing device; receiving, by the context daemon, a callback request from a context client process that specifies a predicate for sending a notification to the context client process, the predicate specifying context conditions for calling back the context client process; generating, by the context daemon, a unique identifier for the callback request; sending, by the context daemon, the unique identifier to the context client process upon receiving the callback request prior to detecting that the current context corresponds to the predicate; detecting, by the context daemon, that the current context corresponds to the predicate; and in response to the detecting, sending, by the context daemon, a callback notification to the context client process, wherein the callback notification includes the unique identifier for the callback request, wherein the context daemon uses the unique identifier to notify the context client that the predicate for the callback request has been satisfied. - View Dependent Claims (2, 3, 4, 5, 6, 7)
-
-
8. A computing device for context notification, the computing device comprising:
-
a processor; and a context daemon, which when executed by the processor on the computing device, causes the context daemon to; generate information describing a current context of the computing device; receive a callback request from a context client process that specifies a predicate for sending a notification to the context client process, the predicate specifying context conditions for calling back the context client process; generate a unique identifier for the callback request; send the unique identifier to the context client process upon receiving the callback request prior to detecting that the current context corresponds to the predicate; detect that the current context corresponds to the predicate; and in response to the detection, send a callback notification to the context client process, wherein the callback notification includes the unique identifier for the callback request, wherein the context daemon uses the unique identifier to notify the context client that the predicate for the callback request has been satisfied. - View Dependent Claims (9, 10, 11, 12, 13, 14)
-
-
15. A non-transitory computer-readable medium containing instructions that, when executed by a computing device, cause a context daemon of the computing device to:
-
generate information describing a current context of the computing device; receive a callback request from a context client process that specifies a predicate for sending a notification to the context client process, the predicate specifying context conditions for calling back the context client process; generate a unique identifier for the callback request; send the unique identifier to the context client process upon receiving the callback request prior to detecting that the current context corresponds to the predicate; detect that the current context corresponds to the predicate; and in response to the detection, send a callback notification to the context client process, wherein the callback notification includes the unique identifier for the callback request, wherein the context daemon uses the unique identifier to notify the context client that the predicate for the callback request has been satisfied. - View Dependent Claims (16, 17, 18, 19, 20)
-
Specification