SuspendingAppFunction


@ExperimentalAppFunctionsApi
fun interface SuspendingAppFunction


An implementation of an app function that supports suspend execution.

This interface is expected as part of HandleAppFunctionRequest.

Summary

Public functions

suspend ExecuteAppFunctionResponse

Called when the app function is invoked using AppFunctionManager.executeAppFunction.

Public functions

executeAppFunction

suspend fun executeAppFunction(request: ExecuteAppFunctionRequest): ExecuteAppFunctionResponse

Called when the app function is invoked using AppFunctionManager.executeAppFunction.

Parameters
request: ExecuteAppFunctionRequest

The request details.

Returns
ExecuteAppFunctionResponse

The execution response result.