As the title states, the OnBackPressed method of the activity needs to be monitored in the rewritten component. How to implement it in the Component. Do you need to override onActivityBack?
漂亮男人2017-05-16 13:24:27
In the Component
拿到你要操作的activity
instance, then listen to the method you want
漂亮男人2017-05-16 13:24:27
Yes, override the onActivityBack
就可以。不过需要注意的是,需要在你的宿主Activity
的onBackPressed
方法中,调用WXSDKInstance
的onActivityBack
method.