createWithContext static method

Future<RtcEngine> createWithContext(
  1. RtcEngineContext config
)

Initializes RtcEngine. All called methods provided by the RtcEngine class are executed asynchronously. Agora recommends calling these methods in the same thread. Before calling other APIs, you must call create and createWithContext to create and initialize the RtcEngine object. The SDK supports creating only one RtcEngine instance for an app.

Param config Configurations for the RtcEngine instance. See RtcEngineContext .

Implementation

static Future<RtcEngine> createWithContext(RtcEngineContext config) async {
  return RtcEngineImpl.createWithContext(config);
}