@snap/camera-kit
Version:
Camera Kit Web
25 lines (14 loc) • 740 B
Markdown
[**CameraKit Web SDK v1.13.0**](../README.md)
***
[CameraKit Web SDK](../globals.md) / RemoteApiRequestHandler
# Type Alias: RemoteApiRequestHandler()
> **RemoteApiRequestHandler**: (`reply`) => [`RemoteApiCancelRequestHandler`](RemoteApiCancelRequestHandler.md) \| `void`
Represents a Remote API request handler function.
It is provided with a reply callback that must be invoked to send a response back to the lens.
The reply callback can be invoked multiple times if needed.
Additionally, the handler can return a cancellation callback, which is triggered when the lens cancels the request.
## Parameters
### reply
(`response`) => `void`
## Returns
[`RemoteApiCancelRequestHandler`](RemoteApiCancelRequestHandler.md) \| `void`