OperatingSystem.IsTvOS 方法

定义

指示当前应用程序是否正在 tvOS 上运行。Indicates whether the current application is running on tvOS.

public:
 static bool IsTvOS();
public static bool IsTvOS ();
static member IsTvOS : unit -> bool
Public Shared Function IsTvOS () As Boolean

返回

Boolean

如果当前应用程序正在 tvOS 上运行,则为 true;否则为 falsetrue if the current application is running on tvOS; false otherwise.

适用于