Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="previousStatus"></param>
        /// <param name="newStatus"></param>
        /// <param name="item"></param>
        protected void OnCallStatusChange(CodecActiveCallItem item)
        {
            var handler = CallStatusChange;

            if (handler != null)
            {
                handler(this, new CodecCallStatusItemChangeEventArgs(item));
            }

            if (AutoShareContentWhileInCall)
            {
                StartSharing();
            }

            if (UsageTracker != null)
            {
                if (IsInCall && !UsageTracker.UsageTrackingStarted)
                {
                    UsageTracker.StartDeviceUsage();
                }
                else if (UsageTracker.UsageTrackingStarted && !IsInCall)
                {
                    UsageTracker.EndDeviceUsage();
                }
            }
        }
Example #2
0
 void PowerIsOnFeedback_OutputChange(object sender, EventArgs e)
 {
     if (UsageTracker != null)
     {
         if (PowerIsOnFeedback.BoolValue)
         {
             UsageTracker.StartDeviceUsage();
         }
         else
         {
             UsageTracker.EndDeviceUsage();
         }
     }
 }