FacialRecognitionInitializationModel

A base class containing details specific to loading a model

Declaration

@objc final public class FacialRecognitionInitializationModel : NSObject, Encodable {
    @objc final public var identifier: String { get }
    @objc final public var timeTakenMilliseconds: Float { get }
    @objc final public var modelDownloaded: Bool { get }
    
    final public func encode(to encoder: Encoder) throws
}

Only relevant details are shown, boilerplate or standard Swift generated code is omitted

Summary

Public variables

Public methods

Public variables

identifier

@objc final public var identifier: String { get }

The unique identifier of the model that was loaded.

timeTakenMilliseconds

@objc final public var timeTakenMilliseconds: Float { get }

The time it took to load the model, in milliseconds.

modelDownloaded

@objc final public var modelDownloaded: Bool { get }

Indicates whether the model was downloaded or loaded locally.

True if the model was downloaded from the Sybrin cloud. False if the model was loaded locally from the device.

Public methods

encode(to encoder: Encoder)

final public func encode(to encoder: Encoder) throws

Encodes the model using the encoder provided. Used to convert the model to JSON.

Where this is used

Last updated