registerPangolin function

Future<OceanResponse> registerPangolin(
  1. {@required String appId,
  2. @required bool useTextureView,
  3. @required String appName,
  4. @required bool allowShowNotify,
  5. @required bool allowShowPageWhenScreenLock,
  6. @required bool debug,
  7. @required bool supportMultiProcess,
  8. bool canUseLocation = false,
  9. List<int> directDownloadNetworkType}
)

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);
}