background image
C H A P T E R 2 2
Transport Interface
Using the Transport Interface
to the Action picker in an application. Here is an example of a return value that
adds two items to the picker:
[ {title: "Reply", // name of action
icon: ROM_RouteReply, // picker icon
// called if action selected
RouteScript: func(target, targetView) begin ... end,
{title: "Forward", // name of action
icon: ROM_RouteForward, // picker icon
// called if action selected
RouteScript: func(target, targetView) begin ... end,
} ]
slot contains a method that is called if the user selects that
item from the picker. Alternatively, in the
slot you can specify a
symbol identifying a transport method, and then supply your transport symbol in
another slot named
For more detailed information about the items in the array, see the section
"Providing Application-Specific Routing Actions" beginning on page 21-22.
For the
slot of each frame in the array, you can specify an icon that appears
next to the name of the action in the picker. There are standard bitmaps available in
the ROM for the following actions:
add sender to the Names application,
copy text to Notes application,
If you are adding one of these actions, use the indicated magic pointer constant for
the standard bitmap, to keep the interface consistent among transports.
Also, when the user taps the Tag button, the system sends your transport the
message, if you've implemented it. This method allows your
transport to add a put away option for the item to the Put Away picker. This hook
allows a transport to put away items that could not otherwise be put away.
Remember that applications (or transports) that need to put away items must
implement the
Whenever an item belonging to your transport is displayed in the In/Out Box, the
In/Out Box also sends your transport the
message. This hook
lets your transport add functionality to items in the In/Out Box by adding to the list
of view definitions available for an item.
© 2007-2017, o7 studio » при воспроизведении материала сайта ссылка обязательна