Integrate Mellowtel into your Windows desktop application to allow users to share their unused internet bandwidth in exchange for rewards or premium features. It’s privacy-focused, transparent, and fully compliant with user consent requirements.
User consent is mandatory. The SDK will throw an InvalidOperationException if you call StartAsync() without the user having opted in. You cannot bypass this check.
using MellowtelWin;// Initialize Mellowtel with your configuration keyvar mellowtel = new Mellowtel("YOUR_CONFIGURATION_KEY");// Check if user has already opted inif (!mellowtel.GetOptInStatus()){ // Show your consent dialog — ONLY call OptIn() if the user agrees mellowtel.OptIn();}// Start the service (throws InvalidOperationException if not opted in)try{ await mellowtel.StartAsync();}catch (InvalidOperationException ex){ Console.WriteLine($"Error: {ex.Message}");}// Stop when your app closesawait mellowtel.StopAsync();
Replace YOUR_CONFIGURATION_KEY with the configuration key from your Mellowtel dashboard.
Displaying a consent dialog is mandatory. The SDK enforces this — StartAsync() throws an InvalidOperationException if the user hasn’t opted in.
Copy
var mellowtel = new Mellowtel("YOUR_CONFIG_KEY");if (!mellowtel.GetOptInStatus()){ var userAgreed = ShowConsentDialog(); // your custom dialog if (userAgreed) mellowtel.OptIn(); else return; // user declined — do not start}try{ await mellowtel.StartAsync();}catch (InvalidOperationException ex){ Console.WriteLine($"Error: {ex.Message}");}
Use plain language. Example: “This app uses Mellowtel to share your unused internet bandwidth. This allows you to [benefit/feature]. You can opt out at any time in settings.”