Information processing apparatus
An information processing apparatus includes a storage unit for storing a state information set by a first program and a callback information set by a second program, which are associated with each other, a detection unit for detecting a change in the state information set by the first program, an acquisition unit for acquiring the callback information set by the second program if the detection unit detects the change in the state information set by the first program, and an execution unit for calling a callback on the basis of the callback information acquired by the acquisition unit.
1 . An information processing apparatus for executing a plurality of programs comprising:
a storage unit configured to store a state information set by a first program and a callback information set by a second program, with the state information and the callback information associated with each other;
a detection unit configured to detect a change in the state information set by the first program;
an acquisition unit configured to acquire the callback information set by the second program if the detection unit detects the change in the state information set by the first program; and
an execution unit configured to call a callback on the basis of the callback information acquired by the acquisition unit.
2 . The information processing apparatus according to claim 1 , wherein a group including the mutually associated state information and callback information is managed with an ID unique to the group, and information of a plurality of groups is stored by the storage unit.
3 . The information processing apparatus according to claim 1 , wherein the storage unit is configured to store a battery level information as the state information and to store a program for notifying of a battery level as the callback information, and the execution unit is configured to notify the battery level on the basis of the callback information.
4 . The information processing apparatus according to claim 1 , wherein the storage unit is configured to store charging start information as the state information and to store a program for performing a charging process as the callback information, and the execution unit is configured to perform the charging process on the basis of the callback information.
5 . The information processing apparatus according to claim 1 , wherein the storage unit is configured to store radio field intensity information for communication as the state information and to store a program for calculating an antenna level as the callback information, and the execution unit is configured to calculate the antenna level on the basis of the callback information.