Supported Types

The following are the supported types and class names which can be wrapped as AnyCloneableData

The following mirror the data types which are available in the app builder and described in the user documentation

πŸ’ΌData Types

String

CloneableString("hello world")

Number

Currently we support double as a number, we plan to add support for explicit integer support

CloneableNumber(5.23) // accepts double

Boolean

CloneableBoolean(true)

Color

Expects a json string to initialize

CloneableColor("{"r":43,"g":66,"b":188,"a":1}")

Date

Location

Status

Holds a pre-defined state

Unique ID

Uses UUID under the hood. All UUIDs should be used as lowercase

Array

An array of any other AnyCloneableDataof the same underlying type

BoundingBox

Refer to Bounding Box for more information

DepthMap

Raw and processed point cloud data from the iphone LiDAR. For more info see Depth Map

We suggest not creating this and using it pre-built from Cloneable's Camera View and Augmented Reality Camera components due to the complexity of processing point clound data from the camera.

Image

Create a UIImage or convert another image type to UIImage

Last updated