{"action":"closed","number":899,"pull_request":{"url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/pulls/899","id":96664914,"html_url":"https://github.com/appcelerator/titanium_mobile_windows/pull/899","diff_url":"https://github.com/appcelerator/titanium_mobile_windows/pull/899.diff","patch_url":"https://github.com/appcelerator/titanium_mobile_windows/pull/899.patch","issue_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/issues/899","number":899,"state":"closed","locked":false,"title":"[TIMOB-24097] Native event handling","user":{"login":"infosia","id":1661068,"avatar_url":"https://avatars.githubusercontent.com/u/1661068?v=3","gravatar_id":"","url":"https://api.github.com/users/infosia","html_url":"https://github.com/infosia","followers_url":"https://api.github.com/users/infosia/followers","following_url":"https://api.github.com/users/infosia/following{/other_user}","gists_url":"https://api.github.com/users/infosia/gists{/gist_id}","starred_url":"https://api.github.com/users/infosia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infosia/subscriptions","organizations_url":"https://api.github.com/users/infosia/orgs","repos_url":"https://api.github.com/users/infosia/repos","events_url":"https://api.github.com/users/infosia/events{/privacy}","received_events_url":"https://api.github.com/users/infosia/received_events","type":"User","site_admin":false},"body":"- [TIMOB-24097](https://jira.appcelerator.org/browse/TIMOB-24097) Native event handling\r\n- [TIMOB-24099](https://jira.appcelerator.org/browse/TIMOB-24099) Mix WinRT APIs with Titanium APIs\r\n\r\nNative event handling for hyperloop using `addEventListener`. \r\nThis also integrates mix with native views with Titanium views, such as adding `Windows.UI.Xaml.Controls.Button` into `Ti.UI.Window`.\r\n\r\n```javascript\r\nrequire('hyperloop').debug = true;\r\n\r\n// \r\n// Currently requiring TappedRoutedEventArgs is needed to handle Tapped event. \r\n// This is because Windows Runtime requires class names registered at compile time.\r\n//\r\nrequire('Windows.UI.Xaml.Input.TappedRoutedEventArgs');\r\n\r\nvar win = Ti.UI.createWindow({ backgroundColor: 'green' }),\r\n    Button = require('Windows.UI.Xaml.Controls.Button'),\r\n    button = new Button();\r\n\r\nbutton.Content = \"PUSH\";\r\nbutton.addEventListener('Tapped', function (e) {\r\n    var pos = e.GetPosition(null);\r\n    Ti.API.info(pos.X + ' -' + pos.Y);\r\n});\r\n\r\nwin.add(button);\r\nwin.open();\r\n```\r\n\r\nNote: This requires new hyperloop with native event handling support (which will be pushed later on).\r\n\r\n\r\n## How to Test\r\n\r\n- Download Titanium SDK build artifacts from here: [titanium_mobile_windows_10_prs/1279/artifact/dist/windows](http://studio-jenkins.appcelerator.org/job/titanium_mobile_windows_10_prs/1279/artifact/dist/windows/) as well as [titanium_mobile_windows_8.1_prs/1021/artifact/dist/windows](http://studio-jenkins.appcelerator.org/job/titanium_mobile_windows_8.1_prs/1021/artifact/dist/windows/), and extract/replace them with your Titanium SDK `windows` directory.\r\n- Make sure to installed latest `hyperloop` module and you have Appcelerator Platform Pro account\r\n\r\n","created_at":"2016-12-06T05:49:39Z","updated_at":"2016-12-08T08:46:04Z","closed_at":"2016-12-08T08:46:04Z","merged_at":"2016-12-08T08:46:04Z","merge_commit_sha":"66a83ccdc2336d95bf747ae0733907d207080c0d","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/pulls/899/commits","review_comments_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/pulls/899/comments","review_comment_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/pulls/comments{/number}","comments_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/issues/899/comments","statuses_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/statuses/7ddf1a3db2d28414e8e3a27894ca80de594f308c","head":{"label":"infosia:TIMOB-24097-PR","ref":"TIMOB-24097-PR","sha":"7ddf1a3db2d28414e8e3a27894ca80de594f308c","user":{"login":"infosia","id":1661068,"avatar_url":"https://avatars.githubusercontent.com/u/1661068?v=3","gravatar_id":"","url":"https://api.github.com/users/infosia","html_url":"https://github.com/infosia","followers_url":"https://api.github.com/users/infosia/followers","following_url":"https://api.github.com/users/infosia/following{/other_user}","gists_url":"https://api.github.com/users/infosia/gists{/gist_id}","starred_url":"https://api.github.com/users/infosia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infosia/subscriptions","organizations_url":"https://api.github.com/users/infosia/orgs","repos_url":"https://api.github.com/users/infosia/repos","events_url":"https://api.github.com/users/infosia/events{/privacy}","received_events_url":"https://api.github.com/users/infosia/received_events","type":"User","site_admin":false},"repo":{"id":33272635,"name":"titanium_mobile_windows","full_name":"infosia/titanium_mobile_windows","owner":{"login":"infosia","id":1661068,"avatar_url":"https://avatars.githubusercontent.com/u/1661068?v=3","gravatar_id":"","url":"https://api.github.com/users/infosia","html_url":"https://github.com/infosia","followers_url":"https://api.github.com/users/infosia/followers","following_url":"https://api.github.com/users/infosia/following{/other_user}","gists_url":"https://api.github.com/users/infosia/gists{/gist_id}","starred_url":"https://api.github.com/users/infosia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infosia/subscriptions","organizations_url":"https://api.github.com/users/infosia/orgs","repos_url":"https://api.github.com/users/infosia/repos","events_url":"https://api.github.com/users/infosia/events{/privacy}","received_events_url":"https://api.github.com/users/infosia/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/infosia/titanium_mobile_windows","description":"Windows platform for Titanium Mobile","fork":true,"url":"https://api.github.com/repos/infosia/titanium_mobile_windows","forks_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/forks","keys_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/keys{/key_id}","collaborators_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/teams","hooks_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/hooks","issue_events_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/issues/events{/number}","events_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/events","assignees_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/assignees{/user}","branches_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/branches{/branch}","tags_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/tags","blobs_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/git/refs{/sha}","trees_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/git/trees{/sha}","statuses_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/statuses/{sha}","languages_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/languages","stargazers_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/stargazers","contributors_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/contributors","subscribers_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/subscribers","subscription_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/subscription","commits_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/commits{/sha}","git_commits_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/git/commits{/sha}","comments_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/comments{/number}","issue_comment_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/issues/comments{/number}","contents_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/contents/{+path}","compare_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/compare/{base}...{head}","merges_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/merges","archive_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/downloads","issues_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/issues{/number}","pulls_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/pulls{/number}","milestones_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/milestones{/number}","notifications_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/labels{/name}","releases_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/releases{/id}","deployments_url":"https://api.github.com/repos/infosia/titanium_mobile_windows/deployments","created_at":"2015-04-01T20:57:51Z","updated_at":"2016-01-13T00:26:59Z","pushed_at":"2016-12-08T04:15:24Z","git_url":"git://github.com/infosia/titanium_mobile_windows.git","ssh_url":"git@github.com:infosia/titanium_mobile_windows.git","clone_url":"https://github.com/infosia/titanium_mobile_windows.git","svn_url":"https://github.com/infosia/titanium_mobile_windows","homepage":null,"size":66248,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"appcelerator:master","ref":"master","sha":"7c776d34689ed60eaa65c8ecc9b210fa1a982386","user":{"login":"appcelerator","id":82188,"avatar_url":"https://avatars.githubusercontent.com/u/82188?v=3","gravatar_id":"","url":"https://api.github.com/users/appcelerator","html_url":"https://github.com/appcelerator","followers_url":"https://api.github.com/users/appcelerator/followers","following_url":"https://api.github.com/users/appcelerator/following{/other_user}","gists_url":"https://api.github.com/users/appcelerator/gists{/gist_id}","starred_url":"https://api.github.com/users/appcelerator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appcelerator/subscriptions","organizations_url":"https://api.github.com/users/appcelerator/orgs","repos_url":"https://api.github.com/users/appcelerator/repos","events_url":"https://api.github.com/users/appcelerator/events{/privacy}","received_events_url":"https://api.github.com/users/appcelerator/received_events","type":"Organization","site_admin":false},"repo":{"id":27684398,"name":"titanium_mobile_windows","full_name":"appcelerator/titanium_mobile_windows","owner":{"login":"appcelerator","id":82188,"avatar_url":"https://avatars.githubusercontent.com/u/82188?v=3","gravatar_id":"","url":"https://api.github.com/users/appcelerator","html_url":"https://github.com/appcelerator","followers_url":"https://api.github.com/users/appcelerator/followers","following_url":"https://api.github.com/users/appcelerator/following{/other_user}","gists_url":"https://api.github.com/users/appcelerator/gists{/gist_id}","starred_url":"https://api.github.com/users/appcelerator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/appcelerator/subscriptions","organizations_url":"https://api.github.com/users/appcelerator/orgs","repos_url":"https://api.github.com/users/appcelerator/repos","events_url":"https://api.github.com/users/appcelerator/events{/privacy}","received_events_url":"https://api.github.com/users/appcelerator/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/appcelerator/titanium_mobile_windows","description":"Windows platform for Titanium Mobile","fork":false,"url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows","forks_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/forks","keys_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/keys{/key_id}","collaborators_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/teams","hooks_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/hooks","issue_events_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/issues/events{/number}","events_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/events","assignees_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/assignees{/user}","branches_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/branches{/branch}","tags_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/tags","blobs_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/git/refs{/sha}","trees_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/git/trees{/sha}","statuses_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/statuses/{sha}","languages_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/languages","stargazers_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/stargazers","contributors_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/contributors","subscribers_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/subscribers","subscription_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/subscription","commits_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/commits{/sha}","git_commits_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/git/commits{/sha}","comments_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/comments{/number}","issue_comment_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/issues/comments{/number}","contents_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/contents/{+path}","compare_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/compare/{base}...{head}","merges_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/merges","archive_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/downloads","issues_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/issues{/number}","pulls_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/pulls{/number}","milestones_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/milestones{/number}","notifications_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/labels{/name}","releases_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/releases{/id}","deployments_url":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/deployments","created_at":"2014-12-07T20:55:18Z","updated_at":"2016-11-30T21:38:09Z","pushed_at":"2016-12-08T08:46:04Z","git_url":"git://github.com/appcelerator/titanium_mobile_windows.git","ssh_url":"git@github.com:appcelerator/titanium_mobile_windows.git","clone_url":"https://github.com/appcelerator/titanium_mobile_windows.git","svn_url":"https://github.com/appcelerator/titanium_mobile_windows","homepage":null,"size":72316,"stargazers_count":15,"watchers_count":15,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":4,"forks":15,"open_issues":4,"watchers":15,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/pulls/899"},"html":{"href":"https://github.com/appcelerator/titanium_mobile_windows/pull/899"},"issue":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/issues/899"},"comments":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/issues/899/comments"},"review_comments":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/pulls/899/comments"},"review_comment":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/pulls/899/commits"},"statuses":{"href":"https://api.github.com/repos/appcelerator/titanium_mobile_windows/statuses/7ddf1a3db2d28414e8e3a27894ca80de594f308c"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"infosia","id":1661068,"avatar_url":"https://avatars.githubusercontent.com/u/1661068?v=3","gravatar_id":"","url":"https://api.github.com/users/infosia","html_url":"https://github.com/infosia","followers_url":"https://api.github.com/users/infosia/followers","following_url":"https://api.github.com/users/infosia/following{/other_user}","gists_url":"https://api.github.com/users/infosia/gists{/gist_id}","starred_url":"https://api.github.com/users/infosia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/infosia/subscriptions","organizations_url":"https://api.github.com/users/infosia/orgs","repos_url":"https://api.github.com/users/infosia/repos","events_url":"https://api.github.com/users/infosia/events{/privacy}","received_events_url":"https://api.github.com/users/infosia/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":5,"additions":220,"deletions":54,"changed_files":16}}
{"actor":{"display_login":"infosia"}}