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.