pub type NSAttributedStringCompletionHandler = *mut Block<dyn Fn(*mut NSAttributedString, *mut NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>, *mut NSError)>;
Available on crate feature
NSAttributedString
and crate feature block2
and crate feature objc2-app-kit
and macOS only.Expand description
Type definition for the completion handler block used to get asynchronous attributed strings.
The completion handler block is passed the attributed string result along with any document-level attributes, like NSBackgroundColorDocumentAttribute, or an error. An implementation of this block type must expect to be called asynchronously when passed to HTML loading methods.
See also Appleās documentation