registerPangolin function

Future<bool> 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. List<int>? directDownloadNetworkType,
})

Implementation

Future<bool> registerPangolin(
    {required String appId,
    required bool useTextureView,
    required String appName,
    required bool allowShowNotify,
    required bool allowShowPageWhenScreenLock,
    required bool debug,
    required bool supportMultiProcess,
    List<int>? directDownloadNetworkType}) async {
  return await _channel.invokeMethod("register", {
    "appId": appId,
    "useTextureView": useTextureView,
    "appName": appName,
    "allowShowNotify": allowShowNotify,
    "allowShowPageWhenScreenLock": allowShowPageWhenScreenLock,
    "debug": debug,
    "supportMultiProcess": supportMultiProcess,
    "directDownloadNetworkType": directDownloadNetworkType ??
        [
          NETWORK_STATE_MOBILE,
          NETWORK_STATE_3G,
          NETWORK_STATE_4G,
          NETWORK_STATE_WIFI
        ]
  });
}