Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-2874] Android: Expose fireSyncEvent method

GitHub Issuen/a
TypeNew Feature
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2011-04-26T15:07:48.000+0000
Affected Version/sn/a
Fix Version/sRelease 1.7.0, Sprint 2011-13
ComponentsAndroid
Labelsandroid, enterprise, feature, release-1.7.0, rplist
ReporterRalf Pfeiffer
AssigneeMarshall Culpepper
Created2011-04-15T03:31:44.000+0000
Updated2011-04-26T15:07:48.000+0000

Description

Greetings, in our application we have found the need to use the Ti.App.fireEvent method. However, we have also found some use cases where we want the method to fire the event synchronously. For instance, currently as a work around to the android menu implementation we have to open up a new window, specify a url, and in this file fire an event to return the menu. Since it's async, the menu doesn't display the first time. The fireSyncEvent method for droid is already exposed so it just needs the kroll annotations, I will submit a pull request in github shortly. Would be great if we could get this pulled into 1.6. Thanks!

Comments

  1. Andreas sandberg 2011-04-15

    Here's the pull request from github, sorry haven't had a chance to look at the iPhone implementation yet: https://github.com/appcelerator/titanium_mobile/pull/61">https://github.com/appcelerator/titanium_mobile/pull/61

  2. Dawson Toth 2011-04-15

    Kicking to Don.

  3. Marshall Culpepper 2011-04-15

    (from [fcabb4247de2419f309baa56472b7d60c3a6492a]) expose fireSyncEvent in Android, added a test [#2874 state:fixed-in-qa] https://github.com/appcelerator/titanium_mobile/commit/fcabb4247de2419f309baa56472b7d60c3a6492a"> https://github.com/appcelerator/titanium_mobile/commit/fcabb4247de2...

JSON Source