APIS not supported by the background proxy of Windows Phone

Source: Internet
Author: User
Tags unsupported

Applicable to: Windows Phone 8 | Windows Phone OS 7.1

A group of Apis cannot be used in code executed by scheduled tasks. This includes implementing the Code contained in the ScheduledTaskAgent class in the form of code in any library called by ScheduledTaskAgent. Some of these APIs are detected by development tools and will cause errors during runtime or compilation. Other APIs are restricted by the shop application submission process.

 

This topic contains the following sections.

  • Unsupported API
  • APIS to be aware of when you plan tasks
Unsupported API

The following table lists APIs not supported by scheduled tasks in each namespace. All APIs in some namespaces are not supported.

Namespace

Unsupported API

Microsoft. Devices

Camera

Microsoft. Devices

VibrateController

Microsoft. Devices

NowPlaying

Microsoft. Devices. Radio

All APIs in this namespace are not supported.

Microsoft. Devices. Sensors

All APIs in this namespace are not supported.

Microsoft. Phone. BackgroundAudio

BackgroundAudioPlayer

Microsoft. Phone. BackgroundTransfer

Add (BackgroundTransferRequest)

Microsoft. Phone. Controls

WebBrowser

Microsoft. Phone. Info

IsKeyboardDeployed

Microsoft. Phone. Notification

All APIs in this namespace are not supported.

Microsoft. Phone. Scheduler

Add (ScheduledAction)

Remove (String)

Replace (ScheduledAction)

Microsoft. Phone. Shell

All APIs except the following APIs are not supported:

  • ShellToast class

  • ShellTileData method of the ShellTile class. All FlipTileData, CycleTileData, and CycleTileData objects can be updated.

  • The Delete () method of the ShellTile class.

  • ActiveTiles attribute of the ShellTile class.

Microsoft. Phone. Tasks

All APIs in this namespace are not supported.

Microsoft. Xna .*

Windows Phone 8 does not support all APIs in all XNA Framework namespaces, except for the following:

  • Picture

  • PictureAlbum

  • PictureAlbumCollection

  • PictureCollection

In Windows Phone versions earlier than Windows Phone 8, all XNA Framework namespaces are not supported.

System. Windows

MessageBox

System. Windows

Clipboard

System. Windows. Controls

MediaElement

System. Windows. Controls

MultiScaleImage

System. Windows. Media

LicenseAcquirer

System. Windows. Media

A/V Capture

System. Windows. Navigation

All APIs in this namespace are not supported.

APIS to be aware of when you plan tasks

 

GeoCoordinateWatcher

This API is used to obtain the geographical coordinates of a device. It can be used in a background proxy, but it uses cached location values instead of real-time data. The device updates the cache Location Value every 15 minutes.

Mutex class

Use the Mutex class to synchronize access to resources (such as files in independent storage) shared between foreground applications and background proxies.

ShellToast class

This class can be used to pop up the Toast notification from the running background proxy.

ShellTileData method of the ShellTile class

Delete () method of the ShellTile class

ActiveTiles attribute of the ShellTile class

These methods can be used to modify the shell block in the running background proxy. Note that you cannot create a shell graph block in the background proxy.

HttpWebRequest class

This class allows you to perform Web requests from a running background proxy.

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.