HandleAppFunctionRequestAdapter


@ExperimentalAppFunctionsApi
public interface HandleAppFunctionRequestAdapter<T extends Object>


An adapter for an interface annotated with AppFunctionSignature.

Implementations of this interface are generated by the AppFunction compiler for interfaces annotated with AppFunctionSignature, and should not be manually implemented.

Instances of this adapter can be obtained via AppFunctionManager.getHandleAppFunctionRequestAdapter.

Parameters
<T extends Object>

The type of the interface annotated with AppFunctionSignature.

Summary

Public methods

abstract @NonNull HandleAppFunctionRequest
adapt(@NonNull T instance)

Creates a HandleAppFunctionRequest for the given instance.

abstract @NonNull String

The unique identifier of the app function.

Public methods

adapt

Added in 1.0.0-alpha11
abstract @NonNull HandleAppFunctionRequest adapt(@NonNull T instance)

Creates a HandleAppFunctionRequest for the given instance.

Parameters
@NonNull T instance

The implementation of the app function interface.

getFunctionIdentifier

Added in 1.0.0-alpha11
abstract @NonNull String getFunctionIdentifier()

The unique identifier of the app function.