createWithAreaCode static method

  1. @Deprecated('This method is deprecated. Use createWithContext instead.')
Future<RtcEngine> createWithAreaCode(
  1. String appId,
  2. List<AreaCode> areaCode
)

Initializes the RtcEngine object. Deprecated: This method is deprecated. Use createWithContext instead.

Param appId The App ID of your Agora project.

Param areaCode The area code.

return The RtcEngine instance, if the method call succeeds. An error code, if the call fails.

Implementation

@Deprecated('This method is deprecated. Use createWithContext instead.')
static Future<RtcEngine> createWithAreaCode(
    String appId, List<AreaCode> areaCode) {
  return createWithContext(RtcEngineContext(appId, areaCode: areaCode));
}