register function
sdk注册初始化
Implementation
Future<bool> register({
required String iosAppId,
required String androidAppId,
bool? useTextureView,
required String appName,
bool? allowShowNotify,
bool? allowShowPageWhenScreenLock,
bool? debug,
bool? supportMultiProcess,
List<int>? directDownloadNetworkType,
}) async {
return await _channel.invokeMethod("register", {
"iosAppId": iosAppId,
"androidAppId": androidAppId,
"useTextureView": useTextureView ?? false,
"appName": appName,
"allowShowNotify": allowShowNotify ?? true,
"allowShowPageWhenScreenLock": allowShowPageWhenScreenLock ?? false,
"debug": debug ?? false,
"supportMultiProcess": supportMultiProcess ?? false,
"directDownloadNetworkType": directDownloadNetworkType != null &&
directDownloadNetworkType.length > 0
? directDownloadNetworkType
: [
NETWORK_STATE_MOBILE,
NETWORK_STATE_2G,
NETWORK_STATE_3G,
NETWORK_STATE_4G,
NETWORK_STATE_WIFI
]
});
}