OperatingSystem.IsWatchOS Method

Definition

Indicates whether the current application is running on watchOS.

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

Returns

Boolean

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

Applies to