OperatingSystem.IsTvOS Method

Definition

Indicates whether the current application is running on tvOS.

C#
public static bool IsTvOS();

Returns

true if the current application is running on tvOS; false otherwise.

Applies to

Product Versions
.NET 5, 6, 7, 8, 9