Esempio n. 1
0
        /// <summary>
        /// Gets whether the 360 mode is enabled or not.
        /// </summary>
        /// <returns>A value indicating whether the 360 mode is enabled or not.</returns>
        /// <value>true if the 360 mode is enabled; otherwise, false.</value>
        /// <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 bool IsMode360Enabled()
        {
            ThrowIfStopped();

            Native.IsMode360Enabled(Manager.Handle, ServerAppId, out var isEnabled).
            ThrowIfError("Failed to get 360 mode state.");

            return(isEnabled);
        }