x/mobile: Add support for callback blocks in ObjC reverse bindings with matching Go function signatures #35967
Labels
FeatureRequest
help wanted
mobile
Android, iOS, and x/mobile
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
Attempted to use a function pointer as a block parameter in ObjC reverse bindings
What did you expect to see?
I hoped it would work
What did you see instead?
Compilation error:
implicit type "void" not found
Assume the function:
Getting reference to the
UNUserNotificationCenter
singleton compiles and works. However, simply referencing theGetNotificationSettingsWithCompletionHandler
function causes a compiler error when trying to understand the method signature looking for a completion handler.The text was updated successfully, but these errors were encountered: