コード例 #1
0
        /// <summary>
        /// Gets the current display mode.
        /// </summary>
        /// <returns>The <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 MediaControlDisplayMode GetDisplayMode()
        {
            ThrowIfStopped();

            Native.GetDisplayMode(Manager.Handle, ServerAppId, out var mode).
            ThrowIfError("Failed to get display mode state.");

            return(mode.ToPublic());
        }