How to use FrameworkDispatcher in XNA


HTML clipboard

It implements the Windows-specific portion of a FrameworkDispatcher class.

With FrameworkDispatcher we can call Update function which updates the power state and media objects.

Here is how we can use it:

FrameworkDispatcher.Update();

When we go to the definition right clicking on Update or FrameworkDispatcher:

XNA.gif

We will be getting this metadata:

#region Assembly Microsoft.Xna.Framework.dll, v4.0.30319
// C:\Program Files\Microsoft XNA\XNA Game Studio\v4.0\References\Windows\x86\Microsoft.Xna.Framework.dll
#endregion

using System;

namespace Microsoft.Xna.Framework
{
    // Summary:
    //     Implements the Windows-specific portion of a FrameworkDispatcher class.
    public static class FrameworkDispatcher
    {
        // Summary:
        //     Updates the status of various framework components (such as power state and
        //     media), and raises related events.
        public static void Update();
    }
}

Up Next
    Ebook Download
    View all
    Learn
    View all
    Araf Global is a software consultancy company founded in 2016 focusing on cutting edge technologies.