Exemple #1
0
        /// <summary>
        /// Gets the value whether the repeat mode is supported or not.
        /// </summary>
        /// <returns>
        /// If there's no supported display mode by server, it will return null.
        /// otherwise, it will return the supported list of <see cref="MediaControlDisplayMode"/>.
        /// </returns>
        /// <exception cref="InvalidOperationException">
        ///     The server has already been stopped.<br/>
        ///     -or-<br/>
        ///     An internal error occurs.
        /// </exception>
        /// <exception cref="ObjectDisposedException">The <see cref="MediaControllerManager"/> has already been disposed.</exception>
        /// <since_tizen> 6 </since_tizen>
        public IEnumerable <MediaControlDisplayMode> GetDisplayModeCapability()
        {
            ThrowIfStopped();

            Native.GetDisplayModeCapability(Manager.Handle, ServerAppId, out uint support).
            ThrowIfError("Failed to get display mode capability");

            return(support != 0 ? ((MediaControlNativeDisplayMode)support).ToPublicList() : null);
        }