setSDK method
Enable or disable the SDK at runtime.
While disabled, the SDK does not authenticate, track events, access the clipboard, or make network requests. User attributes are retained for sync after enabling. Enabling later replays any pending link.
The app must persist its consent decision. For a consent flow, start the
SDK disabled by setting GrovsEnabled to false in the iOS Info.plist and
grovs_enabled to false in the Android manifest, then enable after consent.
Throws GrovsException if the operation fails.
Implementation
Future<void> setSDK(bool enabled) {
return GrovsPlatform.instance.setSDK(enabled);
}