setAppId

Sets the Agora App ID for the project.

public void setAppId(String appId) throws RteException
Since
Available since v4.4.0.

Timing

You must call this method before calling initMediaEngine.

Parameters

appId
Agora App ID, which can be obtained from the console.

Exceptions

If the call fails, the SDK throws an exception and returns the corresponding error information. You need to catch the exception and handle it accordingly.