Describes the protocols adopted by a class.
- iOS 2.0+
- macOS 10.5+
- Mac Catalyst 13.0+
- tvOS 9.0+
- watchOS 2.0+
- Objective-C Runtime
The class you want to inspect.
On return, contains the length of the returned array. If
NULL, the length is not returned.
An array of pointers of type
Protocol* describing the protocols adopted by the class. Any protocols adopted by superclasses or other protocols are not included. The array contains
*out pointers followed by a
NULL terminator. You must free the array with
cls adopts no protocols, or