setAllowInternetConnection static method
- 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;
}