I am struggling with binding LCB script to a Objective-C method of the EventKit.
The instance method requestAccessToEntityType:completion: is documented here: https://developer.apple.com/documentati ... guage=objc
The method description contains reference to a Completion Handler which I understand to be a pointer to a block of code that gets run once the method completes. Clicking on the link on the documentation page EKEventStoreRequestAccessCompletionHandler opens a new page that describes a Type Alias : https://developer.apple.com/documentati ... guage=objc
The description of the block is "The signature for a block that EventKit calls when requesting access to event and reminder data"
Code: Select all
typedef void (^EKEventStoreRequestAccessCompletionHandler)(BOOL granted, NSError *error);
I am unclear as what is meant by the term signature. Does it mean that whatever block of code defined as the completion handler must accept the two parameters 'granted' and '*error' ?