/// <summary> /// Gets the value whether the display mode is supported or not. /// </summary> /// <returns> /// If there's no supported display rotation by server, it will return null. /// otherwise, it will return the supported list of <see cref="Rotation"/>. /// </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 <Rotation> GetDisplayRotationCapability() { ThrowIfStopped(); Native.GetDisplayRotationCapability(Manager.Handle, ServerAppId, out uint support). ThrowIfError("Failed to get display mode capability"); return(support != 0 ? ((MediaControlNativeDisplayRotation)support).ToPublicList() : null); }