private void RegisterSimpleCapabilityUpdatedEvent()
        {
            _categoryCapabilityUpdatedCallback = (serverName, category, support, _) =>
            {
                switch (category)
                {
                case MediaControlNativeCapabilityCategory.Repeat:
                    GetController(serverName)?.RaiseRepeatModeCapabilityUpdatedEvent(support);
                    break;

                case MediaControlNativeCapabilityCategory.Shuffle:
                    GetController(serverName)?.RaiseShuffleModeCapabilityUpdatedEvent(support);
                    break;
                }
            };

            Native.SetCategoryCapabilityUpdatedCb(Handle, _categoryCapabilityUpdatedCallback).
            ThrowIfError("Failed to register capability updated event.");
        }