/// <summary> /// Handles "HeartRateSensorNotSupported" event of the HeartRateMonitorModel object. /// Executes NotSupportedInfoCommand command. /// </summary> /// <param name="sender">Object firing the event.</param> /// <param name="e">Arguments passed to the event.</param> private void ModelOnHeartRateSensorNotSupported(object sender, EventArgs e) { Device.StartTimer(TimeSpan.Zero, () => { NotSupportedInfoCommand?.Execute(null); // return false to run the timer callback only once return(false); }); }
/// <summary> /// Handles "HeartRateSensorNotSupported" event of the HeartRateMonitorModel object. /// Executes NotSupportedInfoCommand command. /// </summary> /// <param name="sender">Object firing the event.</param> /// <param name="e">Arguments passed to the event.</param> private void ModelOnHeartRateSensorNotSupported(object sender, EventArgs e) { NotSupportedInfoCommand?.Execute(null); }