O'Reilly logo

Mastering Windows 8 C++ App Development by Pavel Yosifovich

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Contracts

Contracts are defined by Windows for app to app communication; it's a kind of agreement between apps, mediated by the operating system, that allows apps to communicate indirectly. Let's look at two common examples of contracts.

Share contract

The share contract operates between an app that is a share source (has something to share) and a share target app (that wants to do something with the shared data). An application can be a share source, a share target, or both.

Sharing is usually initiated by using the Share charm. When activated from a share source app, a list of possible target apps is provided by Windows—all the installed apps that implement the share target contract, and accept at least one of the data types provided by the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required