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(
    @NonNull String functionIdentifier,
    @NonNull SuspendingAppFunction appFunction
)

Public methods

final @NonNull SuspendingAppFunction

The implementation of the app function.

final @NonNull String

The unique identifier of the app function.

Public constructors

HandleAppFunctionRequest

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

Public methods

getAppFunction

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

The implementation of the app function.

getFunctionIdentifier

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

The unique identifier of the app function.