RegisterAppFunctionRequest


@ExperimentalAppFunctionsApi
public final class RegisterAppFunctionRequest


A request to register a CallbackAppFunction implementation, provided to AppFunctionManager.registerAppFunctions.

This encapsulates the information needed to register a single app function, equivalent to the arguments to AppFunctionManager.registerAppFunction.

Summary

Public constructors

RegisterAppFunctionRequest(
    @NonNull String functionIdentifier,
    @NonNull Executor executor,
    @NonNull CallbackAppFunction appFunction
)

Public methods

final @NonNull CallbackAppFunction

The implementation of the app function.

final @NonNull Executor

The Executor on which the function will be invoked.

final @NonNull String

The unique identifier of the app function.

Public constructors

RegisterAppFunctionRequest

Added in 1.0.0-alpha12
public RegisterAppFunctionRequest(
    @NonNull String functionIdentifier,
    @NonNull Executor executor,
    @NonNull CallbackAppFunction appFunction
)

Public methods

getAppFunction

Added in 1.0.0-alpha12
public final @NonNull CallbackAppFunction getAppFunction()

The implementation of the app function.

getExecutor

Added in 1.0.0-alpha12
public final @NonNull Executor getExecutor()

The Executor on which the function will be invoked.

getFunctionIdentifier

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

The unique identifier of the app function.