Documentation Language: Swift

Initializer

init(name:cname:type:instance:comment:introspectable:deprecated:varargs:isNullable:allowNone:isOptional:callerAllocates:ownershipTransfer:direction:)

default constructor

init(name: String, cname: String, type: TypeReference, instance: Bool, comment: String, introspectable: Bool = false, deprecated: String? = nil, varargs: Bool = false, isNullable: Bool = false, allowNone: Bool = false, isOptional: Bool = false, callerAllocates: Bool = false, ownershipTransfer: OwnershipTransfer = .none, direction: ParameterDirection = .in)

Parameters

name

The name of the Argument to initialise

cname

C identifier

type

The corresponding, underlying GIR type

instance

true if this is an instance parameter

comment

Documentation text for the type

introspectable

Set to true if introspectable

deprecated

Documentation on deprecation status if non-nil

varargs

true if this is a varargs (...) parameter

isNullable

true if this is a nullable parameter or return type

allowNone

true if this parameter can be omitted

isOptional

true if this is an optional (out) parameter

callerAllocates

true if this is caller allocated

ownershipTransfer

Model of ownership transfer used

direction

Whether this is an in, out, or inout paramete