Skip to main content

Info

The info screen is a general purpose screen to display information to the user.

Screen Type Id : info

Properties

KeyTypeDescription
titleutf-8 stringThe primary title field on the screen. The field wraps when text overflows the width.
subtitleutf-8 stringThe subtitle field on the screen. The field wraps when text overflows the width.
offsetinteger (0-420)Controls the offset (in px) of the subtitle as measured from the top of the screen.
If omitted a default of 235 is used.
qrutf-8 stringString to be encoded in a QR code that is displayed at the top of the screen.
backgroundascii stringName of the asset to use as background image on UI. See assets for details.
The asset must be a 320x480 px png file.
logobooleanSet true to display a logo at the top of the screen.
note

If both logo and qr is set. QR code will take precedence and the logo will not be shown.

Examples

curl -X 'POST' ${CPS_UI_URL} \
-H 'Authorization: CPS apikey="'${CPS_API_KEY}'"' \
-H 'Content-Type: application/json' \
-d '{
"id": "my-info-screen",
"type": "info",
"properties": {
"title": "Title",
"subtitle": "Lorem ipsum dolor sit amet. Ut recusandae dolore est facere voluptatum qui omnis corporis vel expedita totam aut autem."
}
}'
Example