Skip to main content

Property types

Experience templates support a range of Property types to meet a broad range of Experience use cases.

Operators schedule property values under the targeted Scenarios of an Experience. These values are delivered to SDKs at runtime, offering customized Experiences to the active user.

When generating integration code, Experience templates and their Property types are represented through this code.

Supported Properties along with their native type for each available language are defined below.

Color#

A Color object contains a hexadecimal string value (e.g #6e3cbd), along with a decimal opacity between 0 and 1, where 0 is fully transparent.

The Color object will always be defined and never null.

When not defined by an MTRIBES operator, the opacity property defaults to 1 and value defaults to undefined, null or the equivalent in your target language.

interface Color {  value: string | undefined;  opacity: number;}

Date#

Dates are returned to our SDKs as an ISO-8601 UTC string. Where supported, we surface these in the native Date type of your target language.

If no value is defined in MTRIBES, the value returned will be undefined, null or the equivalent in your target language. If however the target language only supports surfacing the raw string representations, then an empty string will be surfaced when the date is unknown.

type Date | undefined

List#

A List is an array of arbitrary string values.

The returned List will default to an empty array if no values are defined in MTRIBES. It will never be null.

type Array<string>

Number#

Numbers represent an integer or decimal value.

If no value is defined in MTRIBES, the value returned will be undefined, null or the equivalent in your target language.

type Number | undefined

Select#

Select types represent a singular string value chosen from a discrete list, by an scheduler in MTRIBES.

If no value was chosen, an empty string will be surfaced. This value will never be null.

type String

Switch#

A Switch is a boolean value of either true or false.

The value will default to false in MTRIBES and can never be null.

type Boolean

Text#

Text is an arbitrary string value entered by a scheduler in MTRIBES.

If no value was entered, an empty string will be surfaced. This value will never be null.

type String

URL#

A URL is a string value entered by an MTRIBES operator, which represents a URL to a resource. For example; an image or a data feed.

If no value was entered, an empty string will be surfaced. This value will never be null.

type String