ORTEnv
Objective-C
@interface ORTEnv : NSObject
Swift
class ORTEnv : NSObject
The ORT environment. It maintains shared state including the default logger.
Note
One ORTEnv should be created before and destroyed after other ORT API usage.-
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.