Windows Phone development: starter and Selector

Source: Internet
Author: User

The initiator and Selector are two sets of APIs that WP provides to developers to enable applications.ProgramYou can easily call APIs to complete some of the built-in general tasks of mobile phones, such as making phone calls, sending emails, and taking photos.

In the WP operating system, all applications are restricted to running and accessing files in their independent buckets. applications cannot directly access information in the public storage area, such as the address book, you cannot directly call the built-in functions of a mobile phone, such as a phone call or text message. To meet the needs of third-party applications for these common tasks, WP provides the initiator and Selector APIs so that applications can indirectly call these commonly used mobile phone functions. Once the built-in functions in the mobile phone are called by the initiator or selector API, the app will run on the frontend and be called instead.

The difference between the initiator and selector: the fundamental difference between the two APIS is whether they pass the return value to the application. After implementing the built-in functions of the mobile phone, the starter does not need to pass the return value to the application. For example, short messages or calls are typical starters. Different from the starter, the selector enables the built-in functions of the mobile phone and enables the user to select information from the mobile phone through the man-machine conversation interface. The selection result will be returned to the application. A typical selector includes selecting an email address or a photo.

When starters and selectors are used, the calling applications that call them will sleep. When the starter and Selector functions are completed or terminated, the sleep application recovers.

 

When using the selector and the initiator, you must reference the using Microsoft. Phone. Tasks namespace.

 

 

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.