AppFunctionStringTypeMetadata


class AppFunctionStringTypeMetadata : AppFunctionDataTypeMetadata


Defines the schema of a string data type.

Corresponds to kotlin.String.

Summary

Public constructors

AppFunctionStringTypeMetadata(
    isNullable: Boolean,
    description: String,
    enumValues: Set<String>?
)

Public functions

open operator Boolean
equals(other: Any?)
open Int
open String

Public properties

Set<String>?

Defines the complete set of allowed string values accepted by this data type.

Inherited properties

From androidx.appfunctions.metadata.AppFunctionDataTypeMetadata
String

A description of the data type and its intended use.

Boolean

Whether the data type is nullable.

Public constructors

AppFunctionStringTypeMetadata

Added in 1.0.0-alpha03
AppFunctionStringTypeMetadata(
    isNullable: Boolean,
    description: String = "",
    enumValues: Set<String>? = null
)

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

enumValues

Added in 1.0.0-alpha03
val enumValuesSet<String>?

Defines the complete set of allowed string values accepted by this data type.

If null, all values are allowed, otherwise it must be non-empty.

If any of the values carry special meaning (e.g., "AUTO" means automatic mode), such meanings should be documented clearly in the corresponding property, parameter, or function return KDoc.