buildArray
TypeScriptstatic buildArray(components: Array<Implements<DataInsertable> | SDKHandle>): SDKHandleSwift declarationstatic func buildArray(_ components: [any DataInsertable]) -> any DataInsertableEnables support for `for..in` loops.
struct · iOS 17.0+ · SDK 27.1
@resultBuilder struct DataInsertableBuilderA custom parameter attribute that constructs custom language model data from closures. The `SFCustomLanguageModelData` class provides two methods for accumulating data: manually constructing `PhraseCount` and `CustomPronunciation` objects and providing them using the `insert` methods defined below, or by using the result builder DSL upon initialization. This type supports the latter.
static buildArray(components: Array<Implements<DataInsertable> | SDKHandle>): SDKHandleSwift declarationstatic func buildArray(_ components: [any DataInsertable]) -> any DataInsertableEnables support for `for..in` loops.
static buildEitherFirst(first: Implements<DataInsertable> | SDKHandle): SDKHandleSwift declarationstatic func buildEither(first: any DataInsertable) -> any DataInsertableEnables support for `if-else` and `switch` constructs.
static buildEitherSecond(second: Implements<DataInsertable> | SDKHandle): SDKHandleSwift declarationstatic func buildEither(second: any DataInsertable) -> any DataInsertableEnables support for `if-else` and `switch` constructs.
static buildOptional(component?: (Implements<DataInsertable> | SDKHandle) | null): SDKHandleSwift declarationstatic func buildOptional(_ component: (any DataInsertable)?) -> any DataInsertableEnables support for `if` statements that do not have an `else` clause.
1 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
SFCustomLanguageModelData.DataInsertableBuilder.buildBlock(_:)
A variable number of Swift arguments is not supported.