SecTransformAttributeActionBlock

Type Alias SecTransformAttributeActionBlock 

Source
pub type SecTransformAttributeActionBlock = *mut DynBlock<dyn Fn(NonNull<SecTransformAttribute>, NonNull<CFType>) -> *const CFType>;
👎Deprecated: SecTransform is no longer supported
Available on crate features SecCustomTransform and block2 only.
Expand description

A block used to override the default attribute handling for when an attribute is set.

Parameter attribute: The attribute whose default is being overridden or NULL if this is a generic notification override

Parameter value: Proposed new value for the attribute.

Returns: The new value of the attribute if successful. If an error occurred then a CFErrorRef is returned. If a transform needs to have a CFErrorRef as the value of an attribute, then the CFErrorRef needs to be placed into a container such as a CFArrayRef, CFDictionaryRef etc.

See the example program in this header for more details.

See also Apple’s documentation