Project: titanium
Issue TIMOB-19427: Use name method/event names on Titanium and Watch side of session
Most methods, properties and events of {{Ti.WatchSession}} share their names with the Apple Watch side of the session. However, some are not and this could easily lead to mistakes so the more we can align them the better. * {{Ti.WatchSession.active()}} ** On Apple Watch: {{activateSession}} * {{Ti.WatchSession.updateAppContext()}} ** On Apple Watch: {{updateApplicationContext}} ** Then also rename {{Ti.WatchSession.recentAppContext}} to {{Ti.WatchSession.recentApplicationContext}} * {{Ti.WatchSession:watchSessionReceivedMessage}} ** On Apple Watch: {{(did)ReceiveMessage}} * {{Ti.WatchSession:watchSessionReceivedUserInfo}} ** On Apple Watch: {{(did)ReceiveUserInfo}} * {{Ti.WatchSession:watchSessionReceivedFile}} ** On Apple Watch: {{(did)didReceiveFile}} * {{Ti.WatchSession:watchSessionReceivedAppContext}} ** On Apple Watch: {{(did)didReceiveApplicationContext}} * {{Ti.WatchSession:watchSessionFinishedUserInfoTransfer}} ** On Apple Watch: {{(did)FinishUserInfoTransfer}} * {{Ti.WatchSession:watchSessionFinishedFileTransfer}} ** On Apple Watch: {{(did)FinishFileTransfer}} The {{watchSession}} prefix for the {{Ti.WatchSession}} events is a bit redundant anyway and since {{did*}} is more Obj-C/delegate style then JS, we could use {{finishFileTransfer}} for {{didFinishFileTransfer}}.
Story points: 3