DataTransferManager.TargetApplicationChosen | targetapplicationchosen event

Applies to Windows and Windows Phone

Occurs when the user chooses a target app in the Share charm.

Syntax


function onTargetApplicationChosen(eventArgs) { /* Your code */ }
 
// addEventListener syntax
dataTransferManager.addEventListener("targetapplicationchosen", onTargetApplicationChosen);
dataTransferManager.removeEventListener("targetapplicationchosen", onTargetApplicationChosen);
 
- or -

dataTransferManager.ontargetapplicationchosen = onTargetApplicationChosen;


Event information

Delegate TypedEventHandler<DataTransferManager, TargetApplicationChosenEventArgs>

Remarks

When the user chooses a target app to share content with, the system fires a TargetApplicationChosen event. The app receiving the event can use this event to record information about the target app for business intelligence. A common use of this event is to record which applications are used to complete different sharing actions, which in turn can help the source app create better experiences for the user.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.ApplicationModel.DataTransfer
Windows::ApplicationModel::DataTransfer [C++]

Metadata

Windows.winmd

See also

DataTransferManager

 

 

Show:
© 2014 Microsoft. All rights reserved.