ExecuteAppFunctionResponse.Success
public final class ExecuteAppFunctionResponse.Success implements ExecuteAppFunctionResponse
Represents a successful execution of an app function.
Summary
Constants |
|
|---|---|
static final @NonNull String |
The key name of the property that stores the function return value within |
Public constructors |
|---|
Success(@NonNull AppFunctionData returnValue) |
Public methods |
|
|---|---|
final @NonNull AppFunctionData |
The return value of the executed function. |
static final @NonNull ExecuteAppFunctionResponse.Success |
@RequiresApi(value = 36)Creates |
final @NonNull ExecuteAppFunctionResponse |
@RequiresApi(value = 36)Converts |
Constants
PROPERTY_RETURN_VALUE
public static final @NonNull String PROPERTY_RETURN_VALUE
The key name of the property that stores the function return value within result.
See AppFunctionData documentation on retrieving expected fields.
Public constructors
Public methods
getReturnValue
public final @NonNull AppFunctionData getReturnValue()
The return value of the executed function. An AppFunctionData.EMPTY indicates that the function does not produce a return value.
toCompatExecuteAppFunctionResponse
@RequiresApi(value = 36)
public static final @NonNull ExecuteAppFunctionResponse.Success toCompatExecuteAppFunctionResponse(
@NonNull ExecuteAppFunctionResponse receiver,
@NonNull AppFunctionMetadata functionMetadata
)
Creates ExecuteAppFunctionResponse from android.app.appfunctions.ExecuteAppFunctionResponse.
The resulting response object is validated against the provided AppFunctionMetadata.
| Parameters | |
|---|---|
@NonNull AppFunctionMetadata functionMetadata |
the |
| Returns | |
|---|---|
@NonNull ExecuteAppFunctionResponse.Success |
The created |
toPlatformExecuteAppFunctionResponse
@RequiresApi(value = 36)
public final @NonNull ExecuteAppFunctionResponse toPlatformExecuteAppFunctionResponse()
Converts ExecuteAppFunctionResponse to android.app.appfunctions.ExecuteAppFunctionResponse.
| Returns | |
|---|---|
@NonNull ExecuteAppFunctionResponse |
The converted |