/// <summary> /// Turn the rich pressence off. /// </summary> public void TurnOff() { //Remove all presences from queue, and clear it. rpc.DequeueAll(); rpc.ClearPresence(); rpc.Dispose(); //Mark as not running. IsRunning = false; }
/// <summary> /// Turn the rich presence off. /// </summary> public RichPresenceClient TurnOff() { api.Logger.Log("Terminating rich presence."); //Remove all presences from queue, and clear it. rpc.DequeueAll(); rpc.ClearPresence(); rpc.Dispose(); //Mark as not running. IsRunning = false; return(this); }
/// <summary> /// Turn the rich pressence off. /// </summary> public void TurnOff() { api.Logger.LogInfo("Terminating rich presence."); //Remove all presences from queue, and clear it. rpc.DequeueAll(); rpc.ClearPresence(); rpc.Dispose(); //Mark as not running. IsRunning = false; }