Common uses of the runtime store

You can use the runtime store to store any object, and you can retrieve the object from a different process or a different app. You can also restrict access to data.

Here are some common uses of the runtime store:

Share data between two apps

For example, an application suite could be made up of multiple apps, all of which use data that is pushed to the device. One of the apps receives all the push data and shares it with the other apps by temporarily storing the data in the runtime store. The runtime store could also be used to set up communication between a listener (such as a PushListener) and a running app.

Store a reference to an object for later use

For example, an app that allows a smartphone user to add and remove an ApplicationMenuItem could use the runtime store to store a reference to an ApplicationMenuItem it has registered. After the app is closed and re-opened, the ApplicationMenuItem can be accessed and unregistered.

Implement system-wide singletons

An app might require one or more singleton objects to be accessed from within the app itself or by other apps.

Was this information helpful? Send us your comments.