createEngineWithProfile static method
- 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. If you need call createEngine multiple times, you need call destroyEngine before you call the next createEngine. Otherwise it will return the instance which created by createEngine you called last time.
profile
The basic configuration information is used to create the engine.
Implementation
static Future<void> createEngineWithProfile(ZegoEngineProfile profile) async {
return await ZegoExpressImpl.createEngineWithProfile(profile);
}