setAppId

Sets an App ID.

public void setAppId(String appId) throws RteException;
Since
v4.5.0

Call timing

Call this method after initMediaEngine.

Restrictions

None.

Parameters

appId
Your project's App ID, which can be obtained from Agora Console.

Exception

If the method call fails, the SDK throws RteException and returns an error message. You need to catch the exception and handle it.