Updated on 2022-03-13 GMT+08:00

AIModelManager::SetListener

Sets the model manager.

If this API is not called or listener is set to nullptr when this API is called, the Process interface is called synchronously. Otherwise, the Process interface is called asynchronously.

Syntax

virtual AIStatus AIModelManager::SetListener(std::shared_ptr<IAIListener> listener) override;

Parameter Description

Parameter

Description

Value Range

listener

Callback function

For details about the syntax of the IAIListener data type, see IAIListener.

-

Return Value

SUCCESS indicates that initialization succeeds, while FAILED indicates that initialization fails.