Common Actions

Defines

#define kILSwapPrepareForTransferAction   @"ILPrepareForTransfer"
 This action is intended to be used by data transfer and messaging programs that can receive attachments.
#define kILSwapComposeMessageAction   @"ILComposeMessage"
 This action is intended to be used by messaging programs that want to make new messages.
#define kILSwapPrintAction   @"ILPrint"
 This action is intended to be used by printing applications.
#define kILSwapViewAction   @"ILView"
 This action is intended to be used by applications to indicate they are intended to display received items.
#define kILSwapEditAction   @"ILEdit"
 This action is intended to be used by applications to indicate they are intended to edit received items.

Define Documentation

#define kILSwapComposeMessageAction   @"ILComposeMessage"

This action is intended to be used by messaging programs that want to make new messages.

It instructs the application to create a new message whose content is the item received (or, if receiving multiple items is supported, multiple new messages). The user should be presented a composition UI to further edit or direct the message.

This might create new e-mails, tweets, Facebook mail messages etc.

Definition at line 72 of file ILSwapCommonActions.h.

#define kILSwapEditAction   @"ILEdit"

This action is intended to be used by applications to indicate they are intended to edit received items.

Items received for this action should be saved in the app's library, if any, and opened in an editing UI.

Definition at line 90 of file ILSwapCommonActions.h.

#define kILSwapPrepareForTransferAction   @"ILPrepareForTransfer"

This action is intended to be used by data transfer and messaging programs that can receive attachments.

It instructs the application to create a new message or discrete upload, or otherwise prepare the item or items to be sent to a third party.

Mover uses to this action to mean "Add to the table".

Example of use:

UIImage* i = <# An image. #>; NSData* d = UIImagePNGRepresentation(i);

ILSwapSendController* ctl = [ILSwapSendController controllerForSendingItems:[NSArray arrayWithObject:d] ofType:(id) kUTTypePNG forAction:kILSwapPrepareForTransferAction];

[ctl send];

Definition at line 64 of file ILSwapCommonActions.h.

#define kILSwapPrintAction   @"ILPrint"

This action is intended to be used by printing applications.

It should either send the items to the printer, or provide a printing UI for the items received.

Definition at line 78 of file ILSwapCommonActions.h.

#define kILSwapViewAction   @"ILView"

This action is intended to be used by applications to indicate they are intended to display received items.

Items received for this action should be displayed.

Definition at line 84 of file ILSwapCommonActions.h.

 All Classes Functions Properties

Generated on Tue Mar 2 13:01:50 2010 for SwapKit by  doxygen 1.6.1