Exemplo n.º 1
0
        static MediaKeyRemoteImpl()
        {
            if (PlatformUtils.IsWindows)
            {
                Instance = new Windows.MediaKeyRemote();
            }
            else if (PlatformUtils.IsLinux)
            {
                Instance = new Linux.MediaKeyRemote();
            }
            else
            {
                throw new PlatformNotSupportedException();
            }

            EventDispatcher.Instance.EventReceived += OnEventReceived;
        }
Exemplo n.º 2
0
        static MediaKeyRemoteImpl()
        {
            if (PlatformUtils.IsWindows)
            {
                Instance = new Windows.MediaKeyRemote();
            }
            else if (PlatformUtils.IsLinux)
            {
                Instance = new Linux.MediaKeyRemote();
            }
            else
            {
                Instance = new Dummy.MediaKeyRemote();
            }

            EventDispatcher.Instance.EventReceived += OnEventReceived;
        }