Click or drag to resize
DataTransferManager Class
Combined library for Pontoon, 32feet and InTheHand.Forms
Programmatically initiates an exchange of content with other apps.
Inheritance Hierarchy
SystemObject
  InTheHand.ApplicationModel.DataTransferDataTransferManager

Namespace:  InTheHand.ApplicationModel.DataTransfer
Assembly:  InTheHand (in InTheHand.dll) Version: 10.0.0.0 (10.2017.04.06)
Syntax
public class DataTransferManager

The DataTransferManager type exposes the following members.

Methods
  NameDescription
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodStatic memberGetForCurrentView
Returns the DataTransferManager object associated with the current window.
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodStatic memberShowShareUI
Programmatically initiates the user interface for sharing content with another app.
Public methodToString (Inherited from Object.)
Top
Events
  NameDescription
Public eventDataRequested
Occurs when a share operation starts.
Public eventTargetApplicationChosen
Occurs when the user chooses a target app in a Share operation.
Top
Remarks
The DataTransferManager class is a static class that you use to initiate sharing operations. To use the class, first call the GetForCurrentView method. This method returns the DataTransferManager object that is specific to the active window. Next, you need to add an event listener for the datarequested event to the object. This event is fired when your app starts a share operation programmatically.

The DataTransferManager class includes a ShowShareUI method, which you can use to programmatically start a share operation. In general, we recommend against using this method. Users expect to initiate share operations by using the Share charm—when you launch the operation programmatically, you can create an inconsistent user experience. We include the method because there are a few scenarios in which the user might not recognize opportunities to share. A good example is when the user achieves a high score in a game.

The DataTransferManager class also has a TargetApplicationChosen event. Use this event when you want to capture what applications a user selects when sharing content from your app.

See Also