Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-26818

iOS: Move application shortcut under Ti.UI.Shortcut to have parity

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: High
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Release 9.1.0
    • Component/s: iOS
    • Labels:
    • Sprint:
      2020 Sprint 14

      Description

      iOS has Ti.UI.iOS.ApplicationShortcuts and android has implemented Ti.UI.ShortcutItem for shortcut. To have parity on both platform , it is discussed to move Shortcut APIs under Ti.UI.Shortcut. Following are the decided APIs -

      1. var shortcutItem = Ti.UI.createShortcutItem({
           id: String   // Unique identifier
           title: String
           description: String
           icon: String/Number
           data: Dictionary
          })
       
      2. var shortcut = Ti.UI.createShortcut();
       
      3. shortcut.add(Ti.UI.ShortcutItem);
       
      4. shortcut.items -> Array<Ti.UI.ShortcutItem>
       
      5. shortcut.getById(id) -> Ti.UI.ShortcutItem
       
      6. shortcut.staticItems -> Array<Ti.UI.ShortcutItem>
       
      7. shortcut.remove(Ti.UI.ShortcutItem);
       
      8. shortcut.removeAll();
       
      9. Event listener - Ti.UI.Shortcuts.addEventListener('click', listener);  -> Ti.UI.ShortcutItem
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jquick Joshua Quick
                Reporter:
                vijaysingh Vijay Singh
                Reviewer:
                Vijay Singh
                Tester:
                Samir Mohammed
              • Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Backbone Issue Sync

                  • Backbone Issue Sync is enabled for your project, but we do not have any synchronization info for this issue.

                    Git Integration