init method
~english Initializes the SDK.
Param options The configurations: EMOptions. Ensure that you set this parameter.
~end
~chinese 初始化 SDK。
Param options 配置,不可为空。
~end
Implementation
Future<void> init(EMOptions options) async {
assert(
options.appId?.isNotEmpty == true || options.appKey?.isNotEmpty == true,
'appId and appKey cannot both be empty',
);
return Client.instance.init(options);
}