TIOModelOptions

@interface TIOModelOptions : NSObject

Encapsulates additional options that a model would like to communicate to it consumers.

  • Preferred device position.

    If the device position is unspecified at initialization, AVCaptureDevicePositionUnspecified will be used, which will then typically default to the back facing camera.

    Declaration

    Objective-C

    @property (readonly, atomic) AVCaptureDevicePosition devicePosition;

    Swift

    var devicePosition: AVCaptureDevice.Position { get }
  • Designated initializer.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDevicePosition:
        (AVCaptureDevicePosition)devicePosition;

    Swift

    init(devicePosition: AVCaptureDevice.Position)
  • Convenience initializer used when reading from a TIOModelBundle.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithDictionary:(nullable NSDictionary *)dictionary;

    Swift

    convenience init(dictionary: [AnyHashable : Any]?)