ORTEnv

Objective-C

@interface ORTEnv : NSObject

Swift

class ORTEnv : NSObject

The ORT environment.

  • Unavailable

    Declaration

    Objective-C

    - (instancetype)init NS_UNAVAILABLE;
  • Creates an ORT Environment.

    Declaration

    Objective-C

    - (nullable instancetype)initWithLoggingLevel:(ORTLoggingLevel)loggingLevel
                                            error:(NSError *_Nullable *_Nullable)
                                                      error;

    Swift

    init(loggingLevel: ORTLoggingLevel) throws

    Parameters

    loggingLevel

    The environment logging level.

    error

    Optional error information set if an error occurs.

    Return Value

    The instance, or nil if an error occurs.