private void BarrierCombinationBehaviorHeadset_Click(object sender, EventArgs e)
        {
            AwarenessBarrier combinedBehaviorHeadsetBarrier = AwarenessBarrier.And(
                HeadsetBarrier.Keeping(HeadsetStatus.Connected),
                AwarenessBarrier.Or(BehaviorBarrier.Keeping(BehaviorBarrier.BehaviorRunning)
                                    , BehaviorBarrier.Keeping(BehaviorBarrier.BehaviorOnBicycle)));

            BarrierUtils.AddBarrier(this, CombinedBehaviorHeadsetBarrierLabel,
                                    combinedBehaviorHeadsetBarrier, mPendingIntent);
        }
        private void BarrierCombinationTimeBluetooth_Click(object sender, EventArgs e)
        {
            // When the Bluetooth car stereo is connected on a weekend, the barrier status is true.
            AwarenessBarrier combinedTimeBluetoothBarrier = AwarenessBarrier.And(
                TimeBarrier.InTimeCategory(TimeBarrier.TimeCategoryWeekend),
                BluetoothBarrier.Keep(BluetoothStatus.DeviceCar, BluetoothStatus.Connected));

            BarrierUtils.AddBarrier(this, CombinedTimeBlueToothBarrierLabel,
                                    combinedTimeBluetoothBarrier, mPendingIntent);
        }