Skip to content

Instantly share code, notes, and snippets.

@BenjaminAbt
Created January 12, 2016 16:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BenjaminAbt/299e963f888c7bc73cac to your computer and use it in GitHub Desktop.
Save BenjaminAbt/299e963f888c7bc73cac to your computer and use it in GitHub Desktop.
Get consents from Microsoft Band SDK
// Get User Consent of current band
UserConsent uc = bandClient.SensorManager.HeartRate.GetCurrentUserConsent();
bool isConsented = false;
if( uc == UserConsent.NotSpecified )
{
isConsented = await bandClient.SensorManager.HeartRate.RequestUserConsentAsync();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment