HandleAppFunctionRequest


@ExperimentalAppFunctionsApi
public final class HandleAppFunctionRequest

A request to register a SuspendingAppFunction implementation, provided to AppFunctionManager.handleAppFunction.

This encapsulates the information needed to register a single app function.

Summary

Public constructors

HandleAppFunctionRequest

Added in 1.0.0-beta01
public HandleAppFunctionRequest(
 @NonNull String functionIdentifier,
 @NonNull SuspendingAppFunction appFunction
)

Public methods

getAppFunction

Added in 1.0.0-beta01
public final @NonNull SuspendingAppFunction getAppFunction()

The implementation of the app function.

getFunctionIdentifier

Added in 1.0.0-beta01
public final @NonNull String getFunctionIdentifier()

The unique identifier of the app function.