Helpers to (de)serialize unknown properties as JSON to store it in an Android ExtendedProperty row.

Format: { propertyName, propertyValue, { param1Name: param1Value, ... } }, with the third array (parameters) being optional.


Link copied to clipboard

Use this value for android.provider.CalendarContract.ExtendedProperties.NAME and org.dmfs.tasks.contract.TaskContract.Properties.MIMETYPE.

Link copied to clipboard
const val MAX_UNKNOWN_PROPERTY_SIZE: Int = 25000

Recommended maximum size of properties for serialization. Won't be enforced by this class (should be checked by caller).

Link copied to clipboard
val parameterFactorySupplier: List<ParameterFactory<out Parameter>>
Link copied to clipboard
val propertyFactorySupplier: List<PropertyFactory<out Property>>


Link copied to clipboard
fun fromJsonString(jsonString: String): Property

Deserializes a JSON string from an ExtendedProperty value to an ical4j property.

Link copied to clipboard
fun toJsonString(prop: Property): String

Serializes an ical4j property to a JSON string that can be stored in an ExtendedProperty.