Udostępnij za pośrednictwem


DataTransferManager.TargetApplicationChosen Event

Definition

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

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

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

// Revoke with event_revoker
DataTransferManager::TargetApplicationChosen_revoker TargetApplicationChosen(auto_revoke_t, TypedEventHandler<DataTransferManager, TargetApplicationChosenEventArgs const&> const& handler) const;
public event TypedEventHandler<DataTransferManager,TargetApplicationChosenEventArgs> TargetApplicationChosen;
function onTargetApplicationChosen(eventArgs) { /* Your code */ }
dataTransferManager.addEventListener("targetapplicationchosen", onTargetApplicationChosen);
dataTransferManager.removeEventListener("targetapplicationchosen", onTargetApplicationChosen);
- or -
dataTransferManager.ontargetapplicationchosen = onTargetApplicationChosen;
Public Custom Event TargetApplicationChosen As TypedEventHandler(Of DataTransferManager, TargetApplicationChosenEventArgs) 

Event Type

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.

Applies to