Container Mode: Simple Use Case

This example shows how to use the container mode.

In this example we create the same user interface as in Direct Mode: Simple Use Case.

Implementation Steps

We need the following steps in our application:

  • Application initialization:

    • Get the container and read the personalization data.

  • React to the Save button:

    • Write the personalization data to the container and save the container.

Get the Container and Read the Personalization Data

The factory method getContainer is asynchronous as it loads the personalization data from the storage. In the respective done method the data from the respective item is read.

Write the Personalization Data to the Container and Save the Container