You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@weex.apache.org by "xingZhang (JIRA)" <ji...@apache.org> on 2018/01/23 08:37:00 UTC
[jira] [Created] (WEEX-200) deprecate WXCallback and
WXModuleCallback callback type
xingZhang created WEEX-200:
------------------------------
Summary: deprecate WXCallback and WXModuleCallback callback type
Key: WEEX-200
URL: https://issues.apache.org/jira/browse/WEEX-200
Project: Weex
Issue Type: Bug
Components: iOS
Reporter: xingZhang
Assignee: xingZhang
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]
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)