Uploaded image for project: 'Weex (Retired)'
  1. Weex (Retired)
  2. WEEX-200

deprecate WXCallback and WXModuleCallback callback type

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • iOS
    • None

    Description

      As iOS  developers knows, we cannot distinguish the block by its params count, but it has been a time we use the default value of block parameter, I find out  that the default value could be dirty data.

       

       here is the callback type  definition.

      typedef void (^WXCallback)(_Nonnull id result)

      typedef void (^WXKeepAliveCallback)(_Nonnull id result, BOOL keepAlive);

       

      when the method called, weexSDK will set the callback according to the @encode result,

      but these two type's encode result are all "?", see more encode result from Apple Documents https://developer.apple.com/library/content/documentation/Cocoa/Conceptual/ObjCRuntimeGuide/Articles/ocrtTypeEncodings.html

       

       

       

       

      Attachments

        Issue Links

          Activity

            People

              acton393 Xing Zhang
              acton393 Xing Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: