registerPangolin function
Implementation
Future<OceanResponse> registerPangolin({
@required String appId,
@required bool useTextureView,
@required String appName,
@required bool allowShowNotify,
@required bool allowShowPageWhenScreenLock,
@required bool debug,
@required bool supportMultiProcess,
bool canUseLocation = false,
List<int> directDownloadNetworkType,
}) async {
Map map = await _channel.invokeMethod<Map>('registerPangolin', {
'appId': appId,
'useTextureView': useTextureView,
'appName': appName,
'allowShowNotify': allowShowNotify,
'allowShowPageWhenScreenLock': allowShowPageWhenScreenLock,
'debug': debug,
'canUseLocation': canUseLocation,
'supportMultiProcess': supportMultiProcess,
'directDownloadNetworkType': directDownloadNetworkType ??
[
NETWORK_STATE_MOBILE,
NETWORK_STATE_3G,
NETWORK_STATE_4G,
NETWORK_STATE_WIFI
]
});
return OceanResponse.create('onResponse', map);
}