Builder
class Builder
kotlin.Any | |
↳ | android.app.appsearch.functions.ExecuteAppFunctionResponse.Builder |
The builder for creating ExecuteAppFunctionResponse
instances.
Summary
Public constructors | |
---|---|
Builder() |
Public methods | |
---|---|
ExecuteAppFunctionResponse |
build() Constructs a new |
ExecuteAppFunctionResponse.Builder |
Sets the additional metadata relevant to this function execution response. |
ExecuteAppFunctionResponse.Builder |
setResult(result: GenericDocument) Sets the result of the app function execution. |
Public constructors
Public methods
build
fun build(): ExecuteAppFunctionResponse
Constructs a new ExecuteAppFunctionResponse
from the contents of this builder.
Return | |
---|---|
ExecuteAppFunctionResponse |
This value cannot be null . |
setExtras
fun setExtras(extras: Bundle): ExecuteAppFunctionResponse.Builder
Sets the additional metadata relevant to this function execution response. Defaults to Bundle.EMPTY
if not set.
Parameters | |
---|---|
extras |
Bundle: This value cannot be null . |
Return | |
---|---|
ExecuteAppFunctionResponse.Builder |
This value cannot be null . |
setResult
fun setResult(result: GenericDocument): ExecuteAppFunctionResponse.Builder
Sets the result of the app function execution. The result is stored within a GenericDocument
under the property name PROPERTY_RESULT
. An empty GenericDocument
indicates that the function does not produce a return value. Defaults to an empty GenericDocument
if not set.
Parameters | |
---|---|
result |
GenericDocument: This value cannot be null . |
Return | |
---|---|
ExecuteAppFunctionResponse.Builder |
This value cannot be null . |