Interface RemoteApiService

Service to handle a lens Remote API request.

interface RemoteApiService {
    apiSpecId: string;
    getRequestHandler(
        request: RemoteApiRequest,
        lens: Lens,
    ): undefined | RemoteApiRequestHandler;
}

Properties

Methods

Properties

apiSpecId: string

Remote API spec ID(s).

Methods

  • This method is called by Camera Kit when a lens triggers a Remote API request with a corresponding spec ID. If the service can handle the request, the method returns a request handler; otherwise, it returns nothing.

    Parameters

    Returns undefined | RemoteApiRequestHandler

    A request handler if applicable.

MMNEPVFCICPMFPCPTTAAATR