One Logo Pool Ball
Distributed · IOS API REFERENCE

LocalTestingInvocationEncoder

struct · iOS 16.0+ · SDK 27.1

struct LocalTestingInvocationEncoder

Members (3)

method · iOS 16.0+

doneRecording

TypeScript
doneRecording(): void
Swift declaration
mutating func doneRecording() throws

Invoked to signal to the encoder that no further `record...` calls will be made on it. Useful if the encoder needs to perform some "final" task before the underlying message is considered complete, e.g. computing a checksum, or some additional message signing or finalization step.

method · iOS 16.0+

recordArgument

TypeScript
recordArgument(argument: RemoteCallArgument<number>): void
Swift declaration
mutating func recordArgument<Value>(_ argument: RemoteCallArgument<Value>) throws where Value : Decodable, Value : Encodable

Record an argument of `Argument` type. This will be invoked for every argument of the target, in declaration order. ### Serialization Requirement Implementations of this method must ensure that the `Value` type parameter conforms to the types' `SerializationRequirement`.

method · iOS 16.0+

recordReturnType

TypeScript
recordReturnType(type: "Bool" | "Int" | "UInt" | "Double" | "Float" | "String" | "CGFloat" | "Date" | "URL" | "Data" | "UUID"): void
Swift declaration
mutating func recordReturnType<R>(_ type: R.Type) throws where R : Decodable, R : Encodable

Record the return type of the distributed method. This method will not be invoked if the target is returning `Void`. ### Serialization Requirement Implementations of this method must ensure that the `R` type parameter conforms to the types' `SerializationRequirement`.

Skipped declarations

2 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

LocalTestingInvocationEncoder.recordGenericSubstitution(_:)

Passing a Swift type itself is not supported.

LocalTestingInvocationEncoder.recordErrorType(_:)

Passing a Swift type itself is not supported.

All Distributed types →