InteractionInputBuilder
Handle
An opaque, server-side builder for an Interaction used by polyglot AppHosts.
type InteractionInputBuilder interface{}Methods
method
ReleaseFiles Releases uploaded files associated with the input.
ReleaseFiles() errorReturns
errorReturns error.
method
WithChoiceOptions Sets the choice options for the input.
WithChoiceOptions(choices []*InteractionChoiceOption) InteractionInputBuilderParameters
choices[]*InteractionChoiceOption The available choices, in display order. Each option pairs a submitted value with a display label.Returns
InteractionInputBuilder The same builder handle.
Returns a handle; failures surface later via Err().
method
WithDynamicLoading Attaches a callback that dynamically loads or updates the input after the prompt starts.
WithDynamicLoading( callback func(arg InteractionInputLoadContext), options ...*DynamicLoadingOptions,) InteractionInputBuilderParameters
callbackfunc(arg InteractionInputLoadContext) callbackThe callback invoked to load the input. Use the supplied context to read other inputs and update this input.options...*DynamicLoadingOptions Optional settings, described under Options.Options
Optional parameters are passed as the existing *DynamicLoadingOptions struct.
Returns
InteractionInputBuilder The same builder handle.
Returns a handle; failures surface later via Err().
method
WithValue Sets the value of the input.
WithValue(value string) InteractionInputBuilderParameters
valuestringThe value to assign.Returns
InteractionInputBuilder The same builder handle.
Returns a handle; failures surface later via Err().