setAllowInternetConnection static method

void setAllowInternetConnection(
  1. bool allowInternetConnection
)

Allow/deny internet connection.

Parameters

  • IN allowInternetConnection Set if the SDK can connect to the internet

Implementation

static void setAllowInternetConnection(bool allowInternetConnection) {
  GemKitPlatform.instance.registerEventHandler(
    offBoardListener.id,
    offBoardListener,
  );

  staticMethod(
    'SdkSettings',
    'setAllowConnection',
    args: <String, dynamic>{
      'allow': allowInternetConnection,
      'listener': offBoardListener.id,
    },
  );

  _offBoardListener = offBoardListener;
}