/// <summary> /// Returns whether the shuffle mode is enabled. /// </summary> /// <returns>A value indicating whether the shuffle mode is enabled.</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> /// <seealso cref="MediaControlServer.SetShuffleModeEnabled(bool)"/> /// <since_tizen> 4 </since_tizen> public bool IsShuffleModeEnabled() { ThrowIfStopped(); Native.GetServerShuffleMode(Manager.Handle, ServerAppId, out var shuffleMode). ThrowIfError("Failed to get shuffle mode state."); return(shuffleMode == MediaControllerNativeShuffleMode.On); }