TargetApplicationChosenEventArgs TargetApplicationChosenEventArgs TargetApplicationChosenEventArgs TargetApplicationChosenEventArgs TargetApplicationChosenEventArgs Class

Definition

Contains information about the target app the user chose to share content with. To get this object, you must handle the TargetApplicationChosen event.

public : sealed class TargetApplicationChosenEventArgs
struct winrt::Windows::ApplicationModel::DataTransfer::TargetApplicationChosenEventArgs
public sealed class TargetApplicationChosenEventArgs
Public NotInheritable Class TargetApplicationChosenEventArgs
// This class does not provide a public constructor.
Attributes

Windows 10 requirements

Device family
Windows 10 (introduced v10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced v1)

Examples

var dataTransferManager = Windows.ApplicationModel.DataTransfer.getForCurrentView();
dataTransferManager.addEventListener("targetapplicationchosen", onTargetApplicationChosen);

function onTargetApplicationChosen(targetApplicationChosentEvent) {
    var appChosenDiv = document.createElement("div");
    appChosenDiv.innerText = targetApplicationChosenEvent.applicationName;
    document.body.appendChild("appChosenDiv");
}

Properties

ApplicationName ApplicationName ApplicationName ApplicationName ApplicationName

Contains the name of the app that the user chose to share content with.