One Logo Pool Ball
CreateMLComponents · IOS API REFERENCE

Event

struct · iOS 16.0+ · SDK 27.1

struct Event

Maintans the status of the pipeline.

Members (10)

get · iOS 16.0+

totalItemCount

TypeScript
get totalItemCount(): (number) | null
Swift declaration
var totalItemCount: Int?

The total number of items being processed.

set · iOS 16.0+

totalItemCount

TypeScript
set totalItemCount(value: (number) | null)
Swift declaration
var totalItemCount: Int?

The total number of items being processed.

get · iOS 16.0+

debugDescription

TypeScript
get debugDescription(): string
Swift declaration
var debugDescription: String { get }

A textual representation of this instance, suitable for debugging. Calling this property directly is discouraged. Instead, convert an instance of any type to a string by using the `String(reflecting:)` initializer. This initializer works with any type, and uses the custom `debugDescription` property for types that conform to `CustomDebugStringConvertible`: struct Point: CustomDebugStringConvertible { let x: Int, y: Int var debugDescription: String { return "(\(x), \(y))" } } let p = Point(x: 21, y: 30) let s = String(reflecting: p) print(s) // Prints "(21, 30)" The conversion of `p` to a string in the assignment to `s` uses the `Point` type's `debugDescription` property.

init · iOS 16.0+

init

TypeScript
static init(origin: string, itemCount: number, totalItemCount: (number) | null, metrics: NativeMap<MetricsKey, SDKHandle>): Event
Swift declaration
init(origin: String, itemCount: Int, totalItemCount: Int? = nil, metrics: [MetricsKey : any Sendable])

Creates an event. - Parameters: - origin: A description of the event's origin. - itemCount: The number of items processed so far. - totalItemCount: The total number of items being processed. - metrics: A dictionary of custom metrics values.

get · iOS 16.0+

origin

TypeScript
get origin(): string
Swift declaration
var origin: String

A description of the event's origin.

set · iOS 16.0+

origin

TypeScript
set origin(value: string)
Swift declaration
var origin: String

A description of the event's origin.

get · iOS 16.0+

metrics

TypeScript
get metrics(): NativeMap<MetricsKey, SDKHandle>
Swift declaration
var metrics: [MetricsKey : any Sendable]

A dictionary of custom metrics values.

set · iOS 16.0+

metrics

TypeScript
set metrics(value: NativeMap<MetricsKey, SDKHandle>)
Swift declaration
var metrics: [MetricsKey : any Sendable]

A dictionary of custom metrics values.

get · iOS 16.0+

itemCount

TypeScript
get itemCount(): number
Swift declaration
var itemCount: Int

The number of items processed so far.

set · iOS 16.0+

itemCount

TypeScript
set itemCount(value: number)
Swift declaration
var itemCount: Int

The number of items processed so far.

Skipped declarations

No declarations were skipped in this snapshot.

All CreateMLComponents types →