createEngineWithProfile static method Null safety

Future<void> createEngineWithProfile(
  1. ZegoEngineProfile profile
)

Create ZegoExpressEngine singleton object and initialize SDK.

Available since: 2.14.0 Description: Create ZegoExpressEngine singleton object and initialize SDK. When to call: The engine needs to be created before calling other functions. Restrictions: None. Caution: The SDK only supports the creation of one instance of ZegoExpressEngine. Multiple calls to this function return the same object.

  • profile The basic configuration information is used to create the engine.

Implementation

static Future<void> createEngineWithProfile(ZegoEngineProfile profile) async {
  return await ZegoExpressImpl.createEngineWithProfile(profile);
}