Function 関数

protocol_getProperty(_:_:_:_:)

Returns the specified property of a given protocol. 与えられたプロトコルのこの指定されたプロパティを返します。

Declaration 宣言

func protocol_getProperty(_ proto: Protocol, 
                        _ name: UnsafePointer<CChar>, 
                        _ isRequiredProperty: Bool, 
                        _ isInstanceProperty: Bool) -> objc_property_t?

Parameters パラメータ

proto

A protocol. あるプロトコル。

name

The name of a property.

isRequiredProperty

A Boolean value that indicates whether name is a required property.

isInstanceProperty

A Boolean value that indicates whether name is an instance property.

Return Value 戻り値

The property specified by name, isRequiredProperty, and isInstanceProperty for proto, or NULL if none of proto’s properties meets the specification.

See Also 参照

Working with Protocols プロトコルを扱う