/// <summary>
        /// Sets the <paramref name="mode"/> is supported or not.
        /// </summary>
        /// <remarks>
        /// <see cref="MediaControlCapabilitySupport.NotDecided"/> is not allowed in display mode capability.<br/>
        /// The default value of each <see cref="MediaControlDisplayMode"/> is not supported.
        /// </remarks>
        /// <param name="mode">The <see cref="MediaControlDisplayMode"/>.</param>
        /// <param name="support">A value indicating whether the <paramref name="mode"/> is supported or not.</param>
        /// <exception cref="InvalidOperationException">
        ///     The server is not running .<br/>
        ///     -or-<br/>
        ///     An internal error occurs.
        /// </exception>
        /// <exception cref="ArgumentException"><paramref name="mode"/> or <paramref name="support"/> is invalid.</exception>
        /// <since_tizen> 6 </since_tizen>
        public static void SetDisplayModeCapability(MediaControlDisplayMode mode, MediaControlCapabilitySupport support)
        {
            ValidationUtil.ValidateEnum(typeof(MediaControlDisplayMode), mode, nameof(mode));
            ValidationUtil.ValidateEnum(typeof(MediaControlCapabilitySupport), support, nameof(support));

            if (support == MediaControlCapabilitySupport.NotDecided)
            {
                throw new ArgumentException($"NotDecided is not allowed in {mode} capability.");
            }

            Native.SetDisplayModeCapability(Handle, (uint)mode.ToNative(), support).
            ThrowIfError("Failed to set display mode capability.");
        }
 /// <summary>
 /// Sets the display mode.
 /// </summary>
 /// <param name="mode">A value indicating the <see cref="MediaControlDisplayMode"/>.</param>
 /// <exception cref="InvalidOperationException">
 ///     The server is not running .<br/>
 ///     -or-<br/>
 ///     An internal error occurs.
 /// </exception>
 /// <since_tizen> 6 </since_tizen>
 public static void SetDisplayMode(MediaControlDisplayMode mode)
 {
     Native.UpdateDisplayMode(Handle, mode.ToNative()).ThrowIfError("Failed to set display mode.");
 }