Windows Phone API Quickstart
Total Page:16
File Type:pdf, Size:1020Kb
Windows Phone API QuickStart Fundamental Types and Threading and cont. cont. Wallet▲ Date / Time Synchronization .NET Microsoft.Phone.Maps.Controls Microsoft.Devices Map, MapLayer, MapOverlay, .NET Microsoft.Phone.Maps.Services Microsoft.Phone.Tasks Windows Runtime PhotoCamera, CameraButtons, CameraVideo- ♦♣ Windows Runtime + GeocodeQuery, ReverseGeocodeQuery, Route- AddWalletItem Windows.Foundation ♦ BrushExtensions Windows.System.Threading Microsoft.Phone Query Microsoft.Phone.Wallet DateTime, Uri ThreadPool, ThreadPoolTimer Microsoft.Phone.Tasks Wallet, Deal, WalletTransactionItem, WalletAgent ♦♣ ♦ PictureDecoder Windows.Foundation.Collections Windows.UI.Core MapsTask, MapsDirectionsTask, MapDownload- Microsoft.Phone.Tasks ▲ IIterable<T>, IVector <T>, IMap<TK, TV>, IVec- CoreDispatcher, CoreWindow, erTask Multitasking torView <T> MediaPlayerLauncher, CameraCaptureTask, ♦ Note: You can get the current dispatcher from PhotoChooserTask, ShareMediaTask, SaveRing- System.Device.Location Windows.Storage.Streams CoreWindow.GetForCurrentThread() GeoCoordinateWatcher .NET Buffer toneTask Microsoft.Xna.Framework.Audio Microsoft.Phone.BackgroundAudio .NET BackgroundAudioPlayer, AudioTrack, AudioPlay- Microphone, SoundEffect, DynamicSoundEffec- ▲ .NET System tInstance erAgent, AudioStreamingAgent ♦ + VoIP System WindowsRuntimeSystemExtensions Microsoft.Xna.Framework.Media Microsoft.Phone.BackgroundTransfer ■ Object, Byte, Char, Int32, Single, Double, String, System.Threading MediaLibrary, MediaPlayer, Song Windows Runtime BackgroundTransferService, BackgroundTransfer- Array, Buffer, Uri, DateTime, TimeSpan, Convert, Thread, ThreadPool, Timer, AutoResetEvent, Microsoft.Xna.Framework.Media.PhoneExtensions Windows.Phone.Media.Capture Request Math, Random, Type, Exception, Action<T...>, ManualResetEvent, Mutex MediaLibraryExtensions+ AudioVideoCaptureDevice, KnownCameraAu- Microsoft.Phone.Networking.Voip Func<T...> ♦ VoipCallInProgressAgent, VoipForegroundLife- ♦ System.Threading.Tasks System.Windows.Media dioVideoProperties System.Collections Task<T>, TaskCompletionSource<T>, CaptureSource, CaptureDeviceConfiguration, Windows.Phone.Media.Devices timeAgent List<T>, Dictionary<TK,TV>, Queue<T>, TaskFactory<T> MediaStreamSource, VideoBrush AudioRoutingManager Microsoft.Phone.Scheduler Stack<T> ScheduledActionService, PeriodicTask, ResourceIn- ♦ System.Windows.Threading System.Windows.Media.Imaging Windows.Phone.Networking.Voip System.Collections.ObjectModel Dispatcher, DispatcherTimer WriteableBitmap, BitmapImage, Extensions+ VoipCallCoordinator, VoipPhoneCall tensiveTask Collection<T>, ObservableCollection<T> Note: You can get the global dispatcher from Note: See Messaging, Sharing & Miscellaneous for Microsoft.Phone.Shell System.Linq System.Windows.Deployment.Current key DRM APIs .NET ShellToast Note: Contains extension methods; no need to use Microsoft.Phone.Wallet Microsoft.Phone.Media specific types WalletAgent Native MediaStreamerFactory System.Runtime.InteropServices.WindowsRuntime ♦ Threads Microsoft.Phone.Networking.Voip WindowsRuntimeBuffer, WindowsRuntime- + GetCurrentThread, GetCurrentThreadId VoipBackgroundProcess, VoipHttpIncoming- Push, Live Tiles and Lock Screen BufferExtensions ♦ ▲ Synchronization Native Note: You can also use standard C# and VB types ■ CallTask, VoipKeepAliveTask WaitForSingleObjectEx, WaitForMultipleObject- Media Foundation See also: Multitasking Windows Runtime and libraries, ‘dynamic’ types, and ‘async’ methods MFSStartup, IMFMediaEngineClassFactory, IMF- via ‘await’ sEx, CreateMutexExW, ReleaseMutex, Crea- Windows.Phone.System.UserProfile MediaEngine, MFShutdown LockScreen, LockScreenManager teEventExW, SetEvent, ResetEvent, CloseHandle, ♦ XAudio2 Native Native InitializeCriticalSectionEx, EnterCriticalSection, Audio ♦ LeaveCriticalSection, DeleteCriticalSection XAudio2Create, X3DAudioInitialize, X3DAudio- .NET Platform Calculate ActivateAudioInterface, GetDefaultAudioCaptu- Object, String, Array<T>, Exception reId, GetDefaultAudioRenderId, Microsoft.Phone.Notification ♦ CaptureDevice Native APIs HttpNotificationChannel Platform::Collections ICameraCaptureDeviceNative, IAudioVideoCap- Vector<T>, VectorView<T>, Map<TK,TV>, Microsoft.Phone.Shell File System tureDeviceNative Controls and Animation (XAML) ShellTile, FlipTileData, IconicTileData, CycleTile- MapView<TK,TV>, VectorIterator<T> Note: These are accessible from the Windows ♦ Data, Date & Time and Streams Runtime objects .NET GetLocalTime, GetSytemTime, GetDynamicTi- Microsoft.Advertising.Mobile.UI♥ meZoneInformation, SystemTimeToFileTime, Windows Runtime AdControl Contacts, Appointments ♥ FileTimeToSystemTime Windows.Storage■ XML, Databases Microsoft.Expression.Interactivity.Core and Reminders Note: You can also use standard C types and the ApplicationData, StorageFile, StorageFolder GoToStateAction, NavigateToPageAction, Call- C++ standard libraries Note: You can get install folder from Windows.Ap- and Serialization MethodAction, ChangePropertyAction ♥ Windows Runtime plicationModel.Package.Current.InstalledLocation .NET Microsoft.Expression.Interactivity.Media Windows.Phone.PersonalInformation • Core App Framework, Memory Windows.Storage.FileProperties System.Data.Linq ControlStoryboardAction, PlaySoundAction ContactStore, StoredContact, ContactInformation, BasicProperties DataContext Microsoft.Phone.Controls KnownContactProperties & Debugging ■ Windows.Storage.Streams System.Data.Linq.Mapping LongListSelector, Panorama, Pivot, WebBrowser Windows Runtime DataReader, DataWriter TableAttribute, ColumnAttribute Microsoft.Phone.Maps.Controls .NET ■♣ ♦ Map, MapLayer, MapOverlay, Windows.ApplicationModel.Core System.Runtime.Serialization ° Microsoft.Phone.Scheduler CoreApplication .NET DataContractSerializer System.Windows.Controls Alarm, Reminder ■♣ ♦ Windows.Graphics.Display Microsoft.Phone.Storage System.Runtime.Serialization.Json Button, CheckBox, RadioButton, HyperlinkBut- Microsoft.Phone.Tasks DisplayProperties ExternalStorage DataContractJsonSerializer ton, TextBlock, TextBox, PasswordBox, RichText- PhoneCallTask, PhoneNumberChooserTask, ♣ ♦ ♦ Windows.Phone.UI.Core System.IO System.Xml Box, Image, MediaElement, ProgressBar, Border, EmailAddressChooserTask, AddressChooserTask, KeyboardInputBuffer StreamReader, StreamWriter, StringReader, XmlReader, XmlWriter Canvas, Grid, ListBox, StackPanel, ScrollViewer, SaveAppointmentTask, SaveContactTask, ♣ ♦ Windows.Phone.UI.Input StringWriter, BinaryReader, BinaryWriter, System.Xml.Linq ViewBox Microsoft.Phone.UserData HardwareButtons MemoryStream, WindowsRuntimeStorageExten- XDocument, XElement, XAttribute, XNamespace, System.Windows.Controls.Primitives Contacts, Appointments ♣ + Windows.UI.Core■ + + Extensions Popup, ViewportControl sions , WindowsRuntimeStreamExtensions ■ ♥ CoreWindow Note: Avoid using the File, FileInfo, Directory, Direc- System.Xml.Serialization System.Windows.Interactivity Messaging, Sharing toryInfo, and Path types XmlSerializer Interaction, InvokeCommandAction, System.IO.IsolatedStorage System.Windows.Media.Animation and Miscellaneous .NET Storyboard, DoubleAnimation, DoubleAnima- Microsoft.Phone.Controls IsolatedStorageFile Windows Runtime In-App Purchase, Licensing tionUsingKeyFrames, DiscreteDoubleKeyFrame, ♣ Windows.ApplicationModel.DataTransfer• PhoneApplicationFrame, PhoneApplicationPage ObjectAnimationUsingKeyFrames, DiscreteOb- Microsoft.Phone.Shell Native and Marketplace DataPackage, DataTransferManager ♦ jectKeyFrame File I/O Windows.Phone.Devices.Power PhoneApplicationService, ApplicationBar, System.Windows.Shapes CreateFile2, ReadFile, WriteFile, DeleteFileW, Windows Runtime Battery SystemTray ■ Rectangle, Ellipse, Polygon ♦ Windows.ApplicationModel.Store Windows.Phone.Management.Deployment System.Diagnostics CloseHandle, FindFirstFileExW, FindClose Note: Use Visual Studio or Expression Blend for CurrentApp InstallationManager Debug, Debugger • layout. Use Expression Blend to add interactivity, Windows.System Windows.Phone.Storage.SharedAccess System.Windows Networking, Web ▲ animation, and visual states. Application, MessageBox, ResourceDictionary Launcher.LaunchUriAsync SharedStorageAccessManager System.Windows.Navigation and Proximity ▲ Windows.Phone.System.Analytics NavigationService, NavigationContext, .NET 3D Graphics HostInformation Windows.Phone.System.Memory UriMapper Windows Runtime Microsoft.Phone.Marketplace .NET LicenseInformation MemoryManager Windows.Networking System.Windows.Controls Microsoft.Phone.Tasks Windows.Phone.System.Power Native HostName DrawingSurface, DrawingSurfaceBackground- ♦ ♦ MarketplaceDetailsTask, MarketplaceRe- PowerManager COM Windows.Networking.Proximity Grid viewTask, MarketplaceSearchTask Windows.System CoInitializeEx, CoUninitialize, CoCreateInstance- PeerFinder, ProximityDevice XNA ▲ ■ Launcher FromApp, StringFromCLSID, CoTaskMemFree, Windows.Networking.Sockets Note: XNA is fully supported for Windows Phone 7.5 CoFreeUnusedLibrariesEx DatagramSocket, StreamSocket ♦ apps only; see documentation. Memory & Libraries Maps, Location and Sensors .NET GetProcessHeap, HeapAlloc, HeapFree, Load- .NET Native Microsoft.Phone.Info PackagedLibrary, GetProcAddress, FreeLibrary Microsoft.Phone.Controls Direct3D DeviceStatus Note: You can also use C++ new and delete opera- + Windows Runtime WebBrowser, WebBrowserExtensions ♦ D3D11CreateDevice, CreateSwapChainForCore- Microsoft.Phone.Tasks tors Windows.Devices.Geolocation ♦ Microsoft.Phone.Tasks Window, ID3D11Device1, ID3D11DeviceCon- PhoneCallTask, SmsComposeTask, EmailCompo- Errors