DataTransferManager.TargetApplicationChosen DataTransferManager.TargetApplicationChosen DataTransferManager.TargetApplicationChosen DataTransferManager.TargetApplicationChosen DataTransferManager.TargetApplicationChosen Event

Definition

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

public : event TypedEventHandler<DataTransferManager, TargetApplicationChosenEventArgs> TargetApplicationChosen
// Register
event_token TargetApplicationChosen(TypedEventHandler<DataTransferManager, TargetApplicationChosenEventArgs> const& handler) const;

// Revoke with event_token
void TargetApplicationChosen(event_token const& cookie) const;

// Revoke with event_revoker
TargetApplicationChosen_revoker TargetApplicationChosen(auto_revoke_t, TypedEventHandler<DataTransferManager, TargetApplicationChosenEventArgs> const& handler) const;
public event TypedEventHandler<DataTransferManager, TargetApplicationChosenEventArgs> TargetApplicationChosen
Public Event TargetApplicationChosen As TypedEventHandler (Of DataTransferManager, TargetApplicationChosenEventArgs)
function onTargetApplicationChosen(eventArgs){/* Your code */}


dataTransferManager.addEventListener("targetapplicationchosen", onTargetApplicationChosen);
dataTransferManager.removeEventListener("targetapplicationchosen", onTargetApplicationChosen);

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.