OperatingSystem.IsWatchOSVersionAtLeast(Int32, Int32, Int32) Método

Definição

Verifica se a versão do watchOS (retornada porChecks if the watchOS version (returned by libobjc.get_operatingSystemVersion) é maior ou igual à versão especificada.) is greater than or equal to the specified version. Esse método pode ser usado para proteger as APIs adicionadas na versão do watchOS especificada.This method can be used to guard APIs that were added in the specified watchOS version.

public static bool IsWatchOSVersionAtLeast (int major, int minor = 0, int build = 0);
static member IsWatchOSVersionAtLeast : int * int * int -> bool
Public Shared Function IsWatchOSVersionAtLeast (major As Integer, Optional minor As Integer = 0, Optional build As Integer = 0) As Boolean

Parâmetros

major
Int32

O número da versão principal.The major release number.

minor
Int32

O número da versão secundária.The minor release number.

build
Int32

O número da versão de build.The build release number.

Retornos

Boolean

true se o aplicativo atual estiver sendo executado em uma versão do watchOS que seja pelo menos a que foi especificada nos parâmetros; caso contrário, false.true if the current application is running on a watchOS version that is at least what was specified in the parameters; false otherwise.

Aplica-se a