From 01fc50d96271f22e813b7ad27f55991474b22df4 Mon Sep 17 00:00:00 2001 From: Kagami Sascha Rosylight Date: Tue, 16 Feb 2016 02:08:29 +0900 Subject: [PATCH] Add some missing descriptions / fix incompatibility --- winrt/winrt-uwp.d.ts | 269 +++++++++++++------------------------------ 1 file changed, 77 insertions(+), 192 deletions(-) diff --git a/winrt/winrt-uwp.d.ts b/winrt/winrt-uwp.d.ts index 4de542180..41dc1b0e1 100644 --- a/winrt/winrt-uwp.d.ts +++ b/winrt/winrt-uwp.d.ts @@ -630,6 +630,7 @@ declare namespace Windows { addEventListener(type: string, listener: Windows.Foundation.EventHandler): void; removeEventListener(type: string, listener: Windows.Foundation.EventHandler): void; } + /** Provides information about an event that occurs when the app is activated because a user tapped on the body of a toast notification or performed an action inside a toast notification. */ abstract class ToastNotificationActivatedEventArgs { /** Gets the arguments that the app can retrieve after it is activated through an interactive toast notification. */ argument: string; @@ -1015,7 +1016,7 @@ declare namespace Windows { */ getAppointmentAsync(localId: string): Windows.Foundation.IPromiseWithIAsyncOperation; /** - * + * (Applies to Windows Phone only) Asynchronously retrieves the Appointment with the specified ID and includes data for the specified properties. * @param localId The LocalId of the appointment to be retrieved. * @param prefetchProperties A list of names of the properties for which data should be included when the appointment is retrieved. * @return An asynchronous operation that returns Appointment on successful completion. @@ -1867,6 +1868,7 @@ declare namespace Windows { */ requestAsync(): Windows.Foundation.IPromiseWithIAsyncOperation; } + /** (Applies to Windows Phone only) The details of an ApplicationTrigger . */ abstract class ApplicationTriggerDetails { /** The arguments that were passed to the background task using the ApplicationTrigger.RequestAsync(ValueSet) method. */ arguments: Windows.Foundation.Collections.ValueSet; @@ -2794,19 +2796,16 @@ declare namespace Windows { /** * Deletes entries in the store. * @param callHistoryEntries The entries to delete. - * @return */ deleteEntriesAsync(callHistoryEntries: Windows.Foundation.Collections.IIterable): any; /* unmapped return type */ /** * Delete an entry from the store. * @param callHistoryEntry The entry to delete. - * @return */ deleteEntryAsync(callHistoryEntry: Windows.ApplicationModel.Calls.PhoneCallHistoryEntry): any; /* unmapped return type */ /** * Gets an entry from the store based on the entry id. * @param callHistoryEntryId The PhoneCallHistoryEntryt.Id of the relevant entry. - * @return */ getEntryAsync(callHistoryEntryId: string): any; /* unmapped return type */ /** @@ -2833,31 +2832,26 @@ declare namespace Windows { getUnseenCountAsync(): Windows.Foundation.IPromiseWithIAsyncOperation; /** * Update all the entries to indicate they have all been seen by the user. - * @return */ markAllAsSeenAsync(): any; /* unmapped return type */ /** * Updates entries to indicate they have been seen by the user. * @param callHistoryEntries The entries to mark as seen. This updates the PhoneCallHistoryEntry.IsSeen property. - * @return */ markEntriesAsSeenAsync(callHistoryEntries: Windows.Foundation.Collections.IIterable): any; /* unmapped return type */ /** * Updates an entry to indicate it has been seen. * @param callHistoryEntry The entry to update. - * @return */ markEntryAsSeenAsync(callHistoryEntry: Windows.ApplicationModel.Calls.PhoneCallHistoryEntry): any; /* unmapped return type */ /** * Marks all entries from the specified sources as seen. * @param sourceIds The list of source identifiers to mark as seen. Only entries that match PhoneCallHistoryEntry.SourceId will be updated. - * @return */ markSourcesAsSeenAsync(sourceIds: Windows.Foundation.Collections.IIterable): any; /* unmapped return type */ /** * Saves an entry to the store. * @param callHistoryEntry The entry to save. - * @return */ saveEntryAsync(callHistoryEntry: Windows.ApplicationModel.Calls.PhoneCallHistoryEntry): any; /* unmapped return type */ } @@ -5373,7 +5367,6 @@ declare namespace Windows { size: number; /** * Divides the object into two views - * @return */ split(): { /** The first half of the object. */ first: Windows.Foundation.Collections.IMapView; /** The second half of the object. */ second: Windows.Foundation.Collections.IMapView; }; /** Gets the source app's logo. */ @@ -6285,6 +6278,7 @@ declare namespace Windows { /** Enable sync for this folder. */ markFolderForSyncEnabled, } + /** Defines the type of negotiation on encryption algorithms permitted by the server. */ enum EmailMailboxAllowedSmimeEncryptionAlgorithmNegotiation { /** No negotiation is allowed. */ none, @@ -6349,6 +6343,7 @@ declare namespace Windows { /** Gets a Boolean value that indicates whether the email mailbox is capable of validating certificates. */ canValidateCertificates: boolean; } + /** The functionality described in this topic is not available to all Windows and Windows Phone apps. For your code to call these APIs, Microsoft must approve your use of them and provision your developer account. Otherwise the calls will fail at runtime. */ abstract class EmailMailboxChange { /** Gets the type of change that was made to the mailbox. This includes whether it was a folder or message that was changed and whether the item was created, deleted, or modified, or if change tracking was lost for this change. */ changeType: Windows.ApplicationModel.Email.EmailMailboxChangeType; @@ -6359,6 +6354,7 @@ declare namespace Windows { /** Gets the message to which the change applies. */ message: Windows.ApplicationModel.Email.EmailMessage; } + /** The functionality described in this topic is not available to all Windows and Windows Phone apps. For your code to call these APIs, Microsoft must approve your use of them and provision your developer account. Otherwise the calls will fail at runtime. */ abstract class EmailMailboxChangeReader { /** Accepts all changes. */ acceptChanges(): void; @@ -6373,6 +6369,7 @@ declare namespace Windows { */ readBatchAsync(): Windows.Foundation.IPromiseWithIAsyncOperation>; } + /** The functionality described in this topic is not available to all Windows and Windows Phone apps. For your code to call these APIs, Microsoft must approve your use of them and provision your developer account. Otherwise the calls will fail at runtime. */ abstract class EmailMailboxChangeTracker { /** Enables change tracking on a mailbox. */ enable(): void; @@ -6403,10 +6400,12 @@ declare namespace Windows { /** Change unknown because change tracking was lost. */ changeTrackingLost, } + /** Represents a deferred process that will halt a thread until the deferral is complete. */ abstract class EmailMailboxChangedDeferral { /** Indicates to waiting processes that the deferral is complete. */ complete(): void; } + /** Represents the deferral process. */ abstract class EmailMailboxChangedEventArgs { /** * Gets the deferral object. @@ -6521,6 +6520,7 @@ declare namespace Windows { /** Use Message Digest algorithm 5 (128-bit). */ md5, } + /** The functionality described in this topic is not available to all Windows and Windows Phone apps. For your code to call these APIs, Microsoft must approve your use of them and provision your developer account. Otherwise the calls will fail at runtime. */ abstract class EmailMailboxSyncManager { /** Gets the last time the mailbox attempted to sync. */ lastAttemptedSyncTime: Date; @@ -6903,6 +6903,7 @@ declare namespace Windows { /** This is the sent items folder. */ sent, } + /** The functionality described in this topic is not available to all Windows and Windows Phone apps. For your code to call these APIs, Microsoft must approve your use of them and provision your developer account. Otherwise the calls will fail at runtime. */ abstract class EmailStore { /** * Allows an app to create an email account from an account name and an email address. @@ -6978,6 +6979,7 @@ declare namespace Windows { /** Scope limited to read all data but only call write APIs that are on the mailbox and do not save. */ allMailboxesLimitedReadWrite, } + /** The functionality described in this topic is not available to all Windows and Windows Phone apps. For your code to call these APIs, Microsoft must approve your use of them and provision your developer account. Otherwise the calls will fail at runtime. */ abstract class EmailStoreNotificationTriggerDetails { } } @@ -7341,13 +7343,11 @@ declare namespace Windows { /** * Returns the ResourceCandidate objects that start at the specified index in the set. * @param startIndex The zero-based index of the start of the ResourceCandidate objects in the set to return. - * @return */ getMany(startIndex: number): { /** The ResourceCandidate objects in the set that start at startIndex. */ items: Windows.ApplicationModel.Resources.Core.ResourceCandidate; /** The number of ResourceCandidate objects returned. */ returnValue: number; }; /** * Returns the index of a specified ResourceCandidate in the set. * @param value The ResourceCandidate to find in the set. - * @return */ indexOf(value: Windows.ApplicationModel.Resources.Core.ResourceCandidate): { /** The zero-based index of the ResourceCandidate , if the item is found. The method returns zero if the item is not found. */ index: number; /** A Boolean that is TRUE if the ResourceCandidate is found, otherwise FALSE if the item is not found. */ returnValue: boolean; }; /** Gets the number of ResourceCandidate objects in the set. */ @@ -7433,13 +7433,11 @@ declare namespace Windows { /** * Returns the ResourceContext language qualifiers that start at the specified index in the set. * @param startIndex The zero-based index of the start of the ResourceContext language qualifiers in the set to return. - * @return */ getMany(startIndex: number): { /** The ResourceContext language qualifiers in the set that start at startIndex. */ items: string[]; /** The number of ResourceContext language qualifiers returned. */ returnValue: number; }; /** * Returns the index of a specified ResourceContext language qualifier in the set. * @param value The ResourceContext language qualifier to find in the set. - * @return */ indexOf(value: string): { /** The zero-based index of the ResourceContext language qualifier, if the item is found. The method returns zero if the item is not found. */ index: number; /** A Boolean that is TRUE if the ResourceContext language qualifier is found; otherwise, FALSE. */ returnValue: boolean; }; /** Gets the number of ResourceContext language qualifiers in the set. */ @@ -7530,7 +7528,6 @@ declare namespace Windows { size: number; /** * Splits the map view into two views. - * @return */ split(): { /** One half of the original map. */ first: Windows.Foundation.Collections.IMapView; /** The second half of the original map. */ second: Windows.Foundation.Collections.IMapView; }; /** Gets a URI that can be used to refer to this ResourceMap . */ @@ -7542,7 +7539,6 @@ declare namespace Windows { current: Windows.Foundation.Collections.IKeyValuePair; /** * Returns all the items in the ResourceMap . - * @return */ getMany(): { /** The items in the map. */ items: Windows.Foundation.Collections.IKeyValuePair; /** The number of items in the map. */ returnValue: number; }; /** Gets a value that indicates whether there is a current item, or whether the iterator is at the end of the ResourceMap . */ @@ -7576,7 +7572,6 @@ declare namespace Windows { size: number; /** * Splits the map view into two views. - * @return */ split(): { /** One half of the original map. */ first: Windows.Foundation.Collections.IMapView; /** The second half of the original map. */ second: Windows.Foundation.Collections.IMapView; }; } @@ -7586,7 +7581,6 @@ declare namespace Windows { current: Windows.Foundation.Collections.IKeyValuePair; /** * Returns all the items in the ResourceMapMapView . - * @return */ getMany(): { /** The items in the map view. */ items: Windows.Foundation.Collections.IKeyValuePair; /** The number of items in the map view. */ returnValue: number; }; /** Gets a value that indicates whether there is a current item, or whether the iterator is at the end of the ResourceMapMapView . */ @@ -7633,7 +7627,6 @@ declare namespace Windows { size: number; /** * Splits the map view into two views. - * @return */ split(): { /** One half of the original map. */ first: Windows.Foundation.Collections.IMapView; /** The second half of the original map. */ second: Windows.Foundation.Collections.IMapView; }; } @@ -7707,13 +7700,11 @@ declare namespace Windows { /** * Returns the ResourceQualifier objects that start at the specified index in the view. * @param startIndex The zero-based index of the start of the objects in the view to return. - * @return */ getMany(startIndex: number): { /** The objects in the view that start at startIndex. */ items: Windows.ApplicationModel.Resources.Core.ResourceQualifier; /** The number of objects returned. */ returnValue: number; }; /** * Returns the index of a specified ResourceQualifier in the view. * @param value The ResourceQualifier to find in the set. - * @return */ indexOf(value: Windows.ApplicationModel.Resources.Core.ResourceQualifier): { /** The zero-based index of the object, if found. The method returns zero if the object is not found. */ index: number; /** A Boolean that is TRUE if the object is found, otherwise FALSE if the object is not found. */ returnValue: boolean; }; /** Gets the number of ResourceQualifier objects in the view. */ @@ -9963,7 +9954,6 @@ declare namespace Windows { /** * Returns the high and low surrogate pair values for the specified supplementary Unicode character. * @param codepoint A Unicode character. This must be in the proper range: 0 <= codepoint <= 0x10FFFF. - * @return */ static getSurrogatePairFromCodepoint(codepoint: number): { /** The high surrogate value returned. */ highSurrogate: string; /** The low surrogate value returned. */ lowSurrogate: string; }; /** @@ -11592,7 +11582,6 @@ declare namespace Windows { /** * Returns the items that start at the specified index of the vector view. * @param startIndex The zero-based index of the start of the items in the vector to return. - * @return */ getMany(startIndex: number): { /** The items in the vector view that start at startIndex. */ items: Windows.Data.Xml.Dom.IXmlNode; /** The number of items returned. */ returnValue: number; }; /** @@ -11611,7 +11600,6 @@ declare namespace Windows { /** * Returns the index of a specified item in the vector view. * @param value The item to find in the vector view. - * @return */ indexOf(value: Windows.Data.Xml.Dom.IXmlNode): { /** The zero-based index of the item if found. Zero is returned if the item is not found. */ index: number; /** TRUE if the item is found; otherwise, FALSE if it is not found. */ returnValue: boolean; }; /** @@ -11668,13 +11656,11 @@ declare namespace Windows { /** * Returns the items that start at the specified index of the vector view. * @param startIndex The zero-based index of the start of the items in the vector to return. - * @return */ getMany(startIndex: number): { /** The items in the vector view that start at startIndex. */ items: Windows.Data.Xml.Dom.IXmlNode; /** The number of items returned. */ returnValue: number; }; /** * Returns the index of a specified item in the vector. * @param value The item to find in the vector. - * @return */ indexOf(value: Windows.Data.Xml.Dom.IXmlNode): { /** The zero-based index of the item if found. Zero is returned if the item is not found. */ index: number; /** TRUE if the item is found; otherwise, FALSE if the item is not found. */ returnValue: boolean; }; /** @@ -13155,7 +13141,7 @@ declare namespace Windows { /** Provides functionality to determine the Bluetooth Low Energy (LE) Appearance information for a device. */ abstract class BluetoothLEAppearance { /** - * + * Creates a BluetoothLEAppearance object by supplying values for Category (see BluetoothLEAppearanceCategories ) and Subcategory (see BluetoothLEAppearanceSubcategories ) of the Bluetooth LE device. * @param appearanceCategory The Bluetooth LE appearance category. See BluetoothLEAppearanceSubcategories . * @param appearanceSubCategory The Bluetooth LE appearance subcategory. See BluetoothLEAppearanceSubcategories . * @return The Bluetooth LE appearance object that was created from the appearance category and subcategory. @@ -13171,6 +13157,7 @@ declare namespace Windows { category: number; /** Gets the appearance raw value of the Bluetooth LE device. */ rawValue: number; + /** Gets the appearance subcategory value of the Bluetooth LE device. */ subCategory: number; } /** Indicates the appearance category code of the Bluetooth LE device. */ @@ -14586,13 +14573,11 @@ declare namespace Windows { /** * Gets a range of DeviceInformation objects. * @param startIndex The index at which to start retrieving DeviceInformation objects. - * @return */ getMany(startIndex: number): { /** The array of DeviceInformation objects starting at the index specified by startIndex. */ items: Windows.Devices.Enumeration.DeviceInformation; /** The number of DeviceInformation objects returned. */ returnValue: number; }; /** * Returns the index of the specified DeviceInformation object in the collection. * @param value The DeviceInformation object in the collection. - * @return */ indexOf(value: Windows.Devices.Enumeration.DeviceInformation): { /** The index. */ index: number; /** true if the method succeeded; otherwise, false. */ returnValue: boolean; }; /** The number of DeviceInformation objects in the collection. */ @@ -15136,13 +15121,11 @@ declare namespace Windows { /** * Retrieves multiple elements in a single pass through the iterator. * @param startIndex The index from which to start retrieval. - * @return */ getMany(startIndex: number): { /** Provides the destination for the result. Size the initial array size as a "capacity" in order to specify how many results should be retrieved. */ items: Windows.Devices.Enumeration.Pnp.PnpObject; /** The number of items retrieved. */ returnValue: number; }; /** * Retrieves the index of the specified item. * @param value The value to find in the collection. - * @return */ indexOf(value: Windows.Devices.Enumeration.Pnp.PnpObject): { /** The index of the item to find, if found. */ index: number; /** True if an item with the specified value was found; otherwise, False. */ returnValue: boolean; }; /** Returns the number of items in the collection. */ @@ -15759,7 +15742,6 @@ declare namespace Windows { * Opens the specified general-purpose I/O (GPIO) pin in the specified mode, and gets a status value that you can use to handle a failure to open the pin programmatically. * @param pinNumber The pin number of the GPIO pin that you want to open. Some pins may not be available in user mode. For information about how the pin numbers correspond to physical pins, see the documentation for your circuit board. * @param sharingMode The mode in which you want to open the GPIO pin, which determines whether other connections to the pin can be opened while you have the pin open. - * @return */ tryOpenPin(pinNumber: number, sharingMode: Windows.Devices.Gpio.GpioSharingMode): { /** The opened GPIO pin if the return value is true; otherwise null. */ pin: Windows.Devices.Gpio.GpioPin; /** An enumeration value that indicates either that the attempt to open the GPIO pin succeeded, or the reason that the attempt to open the GPIO pin failed. */ openStatus: Windows.Devices.Gpio.GpioOpenStatus; /** True if the method successfully opened the pin; otherwise false. */ returnValue: boolean; }; } @@ -17214,7 +17196,6 @@ declare namespace Windows { /** * This method returns the transform from the color frame source to the target entity and sets hasResult to true, if a correlation exists. If a correlation does not exist, hasResult is set to false and result is not modified. * @param targetId The unique ID of the target entity. - * @return */ tryGetTransformTo(targetId: string): { /** If a correlation exists, this will be set to a 4x4 transform matrix that changes basis from the color frame source coordinate system to the target entity coordinate system. */ result: Windows.Foundation.Numerics.Matrix4x4; /** Returns true if a correlation exists, otherwise false. */ returnValue: boolean; }; /** @@ -17289,7 +17270,6 @@ declare namespace Windows { /** * Unprojects all pixels in an image from camera image space out into the coordinate frame of the camera device, using the corresponding depth values from a correlated depth camera. * @param depthFrame The depth frame containing the depth value to use when projecting the points into camera space. The coordinates of each pixel in the image will be mapped from camera image space to depth image space, and then used to look up the depth in this depth frame. - * @return */ unprojectAllPixelsAtCorrelatedDepthAsync(depthFrame: Windows.Devices.Perception.PerceptionDepthFrame): { /** Returns a set of coordinates, relative to the coordinate system of the camera device and with correlated depth values. */ results: Windows.Foundation.Numerics.Vector3; /** This method returns asynchronously. */ returnValue: Windows.Foundation.IPromiseWithIAsyncAction; }; /** @@ -17310,7 +17290,6 @@ declare namespace Windows { * Unprojects a region of pixels in an image from camera image space out into the coordinate frame of the camera device, using the corresponding depth values from a correlated depth camera. * @param region The region of pixels to project from camera image space out into the coordinate frame of the camera device. * @param depthFrame The depth frame containing the depth value to use when projecting the points into camera space. The pixelCoordinates will be mapped from camera image space to depth image space, and then used to look up the depth in depthFrame. - * @return */ unprojectRegionPixelsAtCorrelatedDepthAsync(region: Windows.Foundation.Rect, depthFrame: Windows.Devices.Perception.PerceptionDepthFrame): { /** A set of coordinates, relative to the coordinate system of the camera device and with correlated depth values. */ results: Windows.Foundation.Numerics.Vector3; /** This method returns asynchronously. */ returnValue: Windows.Foundation.IPromiseWithIAsyncAction; }; } @@ -17319,7 +17298,6 @@ declare namespace Windows { /** * Maps all pixels in an image from camera image space to depth image space. * @param depthFrame The depth frame to map the pixels to. - * @return */ mapAllPixelsToTargetAsync(depthFrame: Windows.Devices.Perception.PerceptionDepthFrame): { /** Returns the pixel coordinates, mapped to depth image space. */ targetCoordinates: Windows.Foundation.Point; /** This function returns asynchronously. */ returnValue: Windows.Foundation.IPromiseWithIAsyncAction; }; /** @@ -17340,7 +17318,6 @@ declare namespace Windows { * Maps a region of pixels from camera image space to depth image space. * @param region The region of pixels to map from camera image space to depth image space. * @param depthFrame The depth frame to map the region of pixels to. - * @return */ mapRegionOfPixelsToTargetAsync(region: Windows.Foundation.Rect, depthFrame: Windows.Devices.Perception.PerceptionDepthFrame): { /** The pixel coordinates, mapped to depth image space. */ targetCoordinates: Windows.Foundation.Point; /** This function returns asynchronously. */ returnValue: Windows.Foundation.IPromiseWithIAsyncAction; }; } @@ -17483,7 +17460,6 @@ declare namespace Windows { /** * Gets the transform from the depth frame source to the target entity and sets hasResult to true, if a correlation exists. If a correlation does not exist, hasResult is set to false and result is not modified. * @param targetId The unique ID of the target entity. - * @return */ tryGetTransformTo(targetId: string): { /** If a correlation exists, this will be set to a 4x4 transform matrix that changes basis from the depth frame source coordinate system to the target entity coordinate system. */ result: Windows.Foundation.Numerics.Matrix4x4; /** True if a correlation exists, otherwise false. */ returnValue: boolean; }; /** @@ -17714,7 +17690,6 @@ declare namespace Windows { /** * Gets the transform from the infrared frame source to the target entity and sets hasResult to true, if a correlation exists. If a correlation does not exist, hasResult is set to false and result is not modified. * @param targetId The unique ID of the target entity. - * @return */ tryGetTransformTo(targetId: string): { /** If a correlation exists, this will be set to a 4x4 transform matrix that changes basis from the infrared frame source coordinate system to the target entity coordinate system. */ result: Windows.Foundation.Numerics.Matrix4x4; /** True if a correlation exists, otherwise false. */ returnValue: boolean; }; /** @@ -18646,7 +18621,6 @@ declare namespace Windows { /** * Puts the device into an authenticated state. * @param responseToken A buffer containing the response token generated from the challenge token retrieved from a previous call to the RetrieveDeviceAuthenticationDataAsync method. - * @return */ authenticateDeviceAsync(responseToken: number[]): any; /* unmapped return type */ /** Releases the exclusive claim to the magnetic strip reader. */ @@ -18656,7 +18630,6 @@ declare namespace Windows { /** * Puts the device into an unauthenticated state. * @param responseToken A buffer containing the response token generated from the challenge token retrieved from a previous call to the RetrieveDeviceAuthenticationDataAsync method. - * @return */ deAuthenticateDeviceAsync(responseToken: number[]): any; /* unmapped return type */ /** Gets the DeviceInformation.Id of the claimed magnetic stripe reader. */ @@ -18725,7 +18698,6 @@ declare namespace Windows { * Provides a new encryption key to the device. * @param key The HEX-ASCII or base64-encoded value for the new key. * @param keyName The name used to identify the key. - * @return */ updateKeyAsync(key: string, keyName: string): any; /* unmapped return type */ /** @@ -22978,7 +22950,6 @@ declare namespace Windows { /** * Retrieves the first 9 bytes of a USB configuration descriptor in a UsbConfigurationDescriptor object that is contained in a UsbDescriptor object. * @param descriptor The UsbDescriptor object to parse. - * @return */ static tryParse(descriptor: Windows.Devices.Usb.UsbDescriptor): { /** Receives a UsbConfigurationDescriptor object. */ parsed: Windows.Devices.Usb.UsbConfigurationDescriptor; /** True, if a UsbConfigurationDescriptor object was found in the specified UsbDescriptor object. Otherwise, false. */ returnValue: boolean; }; /** Gets the bConfigurationValue field of a USB configuration descriptor. The value is the number that identifies the configuration. */ @@ -23165,7 +23136,6 @@ declare namespace Windows { /** * Retrieves the USB endpoint descriptor in a UsbEndpointDescriptor object that is contained in a UsbDescriptor object. * @param descriptor The UsbDescriptor object to parse. - * @return */ static tryParse(descriptor: Windows.Devices.Usb.UsbDescriptor): { /** Receives a UsbEndpointDescriptor object. */ parsed: Windows.Devices.Usb.UsbEndpointDescriptor; /** True, if the specified UsbDescriptor object is a USB endpoint descriptor. Otherwise, false. */ returnValue: boolean; }; /** Gets an object that represents the endpoint descriptor for the USB bulk IN endpoint. */ @@ -23222,7 +23192,6 @@ declare namespace Windows { /** * Retrieves information about the alternate setting in a UsbInterfaceDescriptor object that is contained in a UsbDescriptor object. * @param descriptor The UsbDescriptor object to parse. - * @return */ static tryParse(descriptor: Windows.Devices.Usb.UsbDescriptor): { /** Receives a UsbInterfaceDescriptor object. */ parsed: Windows.Devices.Usb.UsbInterfaceDescriptor; /** True, if the specified UsbDescriptor object is USB interface descriptor. Otherwise, false. */ returnValue: boolean; }; /** Gets the bAlternateSetting field of the USB interface descriptor. The value is a number that identifies the alternate setting defined by the interface. */ @@ -24238,13 +24207,11 @@ declare namespace Windows { /** * Retrieves the items that start at the specified index in the vector view. * @param startIndex The zero-based index of the start of the items in the vector view. - * @return */ getMany(startIndex: number): { /** The items that start at startIndex in the vector view. */ items: T; /** The number of items retrieved. */ returnValue: number; }; /** * Retrieves the index of a specified item in the vector view. * @param value The item to find in the vector view. - * @return */ indexOf(value: T): { /** If the item is found, this is the zero-based index of the item; otherwise, this parameter is 0. */ index: number; /** true if the item is found; otherwise, false. */ returnValue: boolean; }; /** Gets the number of items in the vector view. */ @@ -24268,7 +24235,6 @@ declare namespace Windows { /** * Retrieves the items that start at the specified index in the vector. * @param startIndex The zero-based index of the start of the items in the vector. - * @return */ getMany(startIndex: number): { /** The items that start at startIndex in the vector. */ items: T; /** The number of items retrieved. */ returnValue: number; }; /** @@ -24279,7 +24245,6 @@ declare namespace Windows { /** * Retrieves the index of a specified item in the vector. * @param value The item to find in the vector. - * @return */ indexOf(value: T): { /** If the item is found, this is the zero-based index of the item; otherwise, this parameter is 0. */ index: number; /** true if the item is found; otherwise, false. */ returnValue: boolean; }; /** @@ -24333,7 +24298,6 @@ declare namespace Windows { lookup(key: K): V; /** * Splits the map view into two views. - * @return */ split(): { /** One half of the original map. */ first: Windows.Foundation.Collections.IMapView; /** The second half of the original map. */ second: Windows.Foundation.Collections.IMapView; }; /** Gets the number of elements in the map. */ @@ -24381,7 +24345,6 @@ declare namespace Windows { interface IIterator { /** * Retrieves all items in the collection. - * @return */ getMany(): { /** The items in the collection. */ items: T; /** The number of items in the collection. */ returnValue: number; }; /** @@ -25858,7 +25821,7 @@ declare namespace Windows { * Ends the current logging session and saves it to a file. * @return When this method completes, it returns the new file as a StorageFile . */ - closeAndSaveToFileAsync(): Windows.Foundation.IAsyncOperation; + closeAndSaveToFileAsync(): Windows.Foundation.IPromiseWithIAsyncOperation; /** * Removes the specified logging channel from the current logging session. * @param loggingChannel The logging channel to remove. @@ -26400,13 +26363,11 @@ declare namespace Windows { /** * Gets name-value pairs starting at the specified index in the current URL query string. * @param startIndex The index to start getting name-value pairs at. - * @return */ getMany(startIndex: number): { /** The name-value pairs. */ items: Windows.Foundation.IWwwFormUrlDecoderEntry; /** The number of name-value pairs in items. */ returnValue: number; }; /** * Gets a value indicating whether the specified IWwwFormUrlDecoderEntry is at the specified index in the current URL query string. * @param value The name-value pair to get the index of. - * @return */ indexOf(value: Windows.Foundation.IWwwFormUrlDecoderEntry): { /** The position in value. */ index: number; /** true if value is at the position specified by index; otherwise, false. */ returnValue: boolean; }; /** Gets the number of the name-value pairs in the current URL query string. */ @@ -27377,13 +27338,11 @@ declare namespace Windows { /** * Returns the CharacterGrouping objects that start at the specified index in the set of character groups. * @param startIndex The zero-based index of the start of the CharacterGrouping objects in the set to return. - * @return */ getMany(startIndex: number): { /** The CharacterGrouping objects in the set that start at startIndex. */ items: Windows.Globalization.Collation.CharacterGrouping; /** The number of objects returned. */ returnValue: number; }; /** * Returns the index of a specified CharacterGrouping object in the set of character groups. * @param value The CharacterGrouping object to find in the set. - * @return */ indexOf(value: Windows.Globalization.Collation.CharacterGrouping): { /** The zero-based index of the CharacterGrouping object, if found. The method returns zero if the object is not found. */ index: number; /** True if the object is found, otherwise false. */ returnValue: boolean; }; /** @@ -28977,32 +28936,44 @@ declare namespace Windows { /** Specifies that the monitor rotated another 90 degrees in the clockwise direction (to equal 270 degrees) to orient the display in portrait mode where the height of the display viewing area is greater than the width. This portrait mode is flipped 180 degrees from the Portrait mode. */ portraitFlipped, } + /** Provides various properties that are related to the physical display. */ abstract class DisplayProperties { + /** Gets and sets the preferred orientation of the app. */ static autoRotationPreferences: Windows.Graphics.Display.DisplayOrientations; + /** Gets the current orientation of a rectangular monitor. */ static currentOrientation: Windows.Graphics.Display.DisplayOrientations; /** - * + * Asynchronously gets the default International Color Consortium (ICC) color profile that is associated with the physical display. * @return Object that manages the asynchronous retrieval of the color profile. */ static getColorProfileAsync(): Windows.Foundation.IPromiseWithIAsyncOperation; + /** Gets the pixels per logical inch of the current environment. */ static logicalDpi: number; + /** Gets the native orientation of the display monitor, which is typically the orientation where the buttons on the device match the orientation of the monitor. */ static nativeOrientation: Windows.Graphics.Display.DisplayOrientations; + /** Occurs when the physical display's color profile changes. */ static oncolorprofilechanged: Windows.Graphics.Display.DisplayPropertiesEventHandler; static addEventListener(type: "colorprofilechanged", listener: Windows.Graphics.Display.DisplayPropertiesEventHandler): void; static removeEventListener(type: "colorprofilechanged", listener: Windows.Graphics.Display.DisplayPropertiesEventHandler): void; + /** Occurs when the display requires redrawing. */ static ondisplaycontentsinvalidated: Windows.Graphics.Display.DisplayPropertiesEventHandler; static addEventListener(type: "displaycontentsinvalidated", listener: Windows.Graphics.Display.DisplayPropertiesEventHandler): void; static removeEventListener(type: "displaycontentsinvalidated", listener: Windows.Graphics.Display.DisplayPropertiesEventHandler): void; + /** Occurs when the LogicalDpi property changes because the pixels per inch (PPI) of the display changes. */ static onlogicaldpichanged: Windows.Graphics.Display.DisplayPropertiesEventHandler; static addEventListener(type: "logicaldpichanged", listener: Windows.Graphics.Display.DisplayPropertiesEventHandler): void; static removeEventListener(type: "logicaldpichanged", listener: Windows.Graphics.Display.DisplayPropertiesEventHandler): void; + /** Occurs when either the CurrentOrientation or NativeOrientation property changes because of a mode change or a monitor change. */ static onorientationchanged: Windows.Graphics.Display.DisplayPropertiesEventHandler; static addEventListener(type: "orientationchanged", listener: Windows.Graphics.Display.DisplayPropertiesEventHandler): void; static removeEventListener(type: "orientationchanged", listener: Windows.Graphics.Display.DisplayPropertiesEventHandler): void; + /** Occurs when the StereoEnabled property changes because support for stereoscopic 3D changes. */ static onstereoenabledchanged: Windows.Graphics.Display.DisplayPropertiesEventHandler; static addEventListener(type: "stereoenabledchanged", listener: Windows.Graphics.Display.DisplayPropertiesEventHandler): void; static removeEventListener(type: "stereoenabledchanged", listener: Windows.Graphics.Display.DisplayPropertiesEventHandler): void; + /** Gets the scale factor of the immersive environment. */ static resolutionScale: Windows.Graphics.Display.ResolutionScale; + /** Gets a value that indicates whether the device supports stereoscopic 3D. */ static stereoEnabled: boolean; static addEventListener(type: string, listener: Windows.Foundation.EventHandler): void; static removeEventListener(type: string, listener: Windows.Foundation.EventHandler): void; @@ -29044,7 +29015,7 @@ declare namespace Windows { /** Specifies the scale of a display as 500 percent. */ scale500Percent, } - /** */ + /** Represents a method that handles display property events. */ type DisplayPropertiesEventHandler = (ev: WinRTEvent) => void; } namespace Effects { @@ -32775,6 +32746,7 @@ declare namespace Windows { /** Provides settings for capturing videos. The settings include format, maximum resolution, maximum duration, and whether or not to allow trimming. */ videoSettings: Windows.Media.Capture.CameraCaptureUIVideoCaptureSettings; } + /** Determines the highest resolution the user can select for capturing photos. */ enum CameraCaptureUIMaxPhotoResolution { /** The user can select any resolution. */ highestAvailable, @@ -35911,12 +35883,10 @@ declare namespace Windows { capabilities: Windows.Media.Devices.MediaDeviceControlCapabilities; /** * Indicates whether automatic adjustment of the camera setting is enabled. - * @return */ tryGetAuto(): { /** True if automatic adjustment is enabled; false otherwise. */ value: boolean; /** Returns true if the method succeeds, or false otherwise. */ returnValue: boolean; }; /** * Gets the value of the camera setting. - * @return */ tryGetValue(): { /** The current value of the setting. The units depend on the setting. */ value: number; /** Returns true if the method succeeds, or false otherwise. */ returnValue: boolean; }; /** @@ -36180,7 +36150,6 @@ declare namespace Windows { torchControl: Windows.Media.Devices.TorchControl; /** * Gets the local power line frequency. - * @return */ tryGetPowerlineFrequency(): { /** The power line frequency. */ value: Windows.Media.Capture.PowerlineFrequency; /** Returns true if the method succeeded, or false otherwise. */ returnValue: boolean; }; /** @@ -38634,13 +38603,11 @@ declare namespace Windows { /** * Retrieves the audio tracks that start at the specified index in the list. * @param startIndex The zero-based index of the start of the audio tracks in the list. - * @return */ getMany(startIndex: number): { /** The audio tracks that start at startIndex in the list. */ items: Windows.Media.Core.AudioTrack; /** The number of audio tracks retrieved. */ returnValue: number; }; /** * Retrieves the index of a specified audio track in the list. * @param value The audio track to find in the vector view. - * @return */ indexOf(value: Windows.Media.Core.AudioTrack): { /** If the audio track is found, this is the zero-based index of the audio track; otherwise, this parameter is 0. */ index: number; /** True if the audio track is found; otherwise, false. */ returnValue: boolean; }; /** Occurs when the index of the currently selected audio track changes. */ @@ -38793,7 +38760,6 @@ declare namespace Windows { /** * Retrieves the timed metadata tracks that start at the specified index in the list. * @param startIndex The zero-based index of the start of the timed metadata tracks in the list. - * @return */ getMany(startIndex: number): { /** The timed metadata tracks that start at startIndex in the list. */ items: Windows.Media.Core.TimedMetadataTrack; /** The number of timed metadata tracks retrieved. */ returnValue: number; }; /** @@ -38805,7 +38771,6 @@ declare namespace Windows { /** * Retrieves the index of a specified timed metadata track in the list. * @param value The timed metadata track to find in the vector view. - * @return */ indexOf(value: Windows.Media.Core.TimedMetadataTrack): { /** If the timed metadata track is found, this is the zero-based index of the audio track; otherwise, this parameter is 0. */ index: number; /** True if the timed metadata track is found; otherwise, false. */ returnValue: boolean; }; /** Occurs when the presentation mode of the MediaPlaybackTimedMetadataTrackList changes. */ @@ -38841,13 +38806,11 @@ declare namespace Windows { /** * Retrieves the video tracks that start at the specified index in the list. * @param startIndex The zero-based index of the start of the video tracks in the list. - * @return */ getMany(startIndex: number): { /** The video tracks that start at startIndex in the list. */ items: Windows.Media.Core.VideoTrack; /** The number of video tracks retrieved. */ returnValue: number; }; /** * Retrieves the index of a specified video track in the list. * @param value The video track to find in the vector view. - * @return */ indexOf(value: Windows.Media.Core.VideoTrack): { /** If the video track is found, this is the zero-based index of the audio track; otherwise, this parameter is 0. */ index: number; /** True if the video track is found; otherwise, false. */ returnValue: boolean; }; /** Occurs when the index of the currently selected video track changes. */ @@ -39667,7 +39630,6 @@ declare namespace Windows { current: Windows.Media.Protection.PlayReady.IPlayReadyDomain; /** * Retrieves all items in the PlayReady domain collection. - * @return */ getMany(): { /** The items in the collection. */ items: Windows.Media.Protection.PlayReady.IPlayReadyDomain; /** The number of items in the collection. */ returnValue: number; }; /** Gets a value that indicates whether there is a current item or the iterator is at the end of the PlayReady domain collection. */ @@ -39918,7 +39880,6 @@ declare namespace Windows { current: Windows.Media.Protection.PlayReady.IPlayReadyLicense; /** * Retrieves all items in the PlayReady license collection. - * @return */ getMany(): { /** The items in the collection. */ items: Windows.Media.Protection.PlayReady.IPlayReadyLicense; /** The number of items in the collection. */ returnValue: number; }; /** Gets a value that indicates whether there is a current item or the iterator is at the end of the PlayReady license collection. */ @@ -40049,7 +40010,6 @@ declare namespace Windows { current: Windows.Media.Protection.PlayReady.IPlayReadySecureStopServiceRequest; /** * Retrieves all items in the PlayReady secure stop collection. - * @return */ getMany(): { /** The items in the collection. */ items: Windows.Media.Protection.PlayReady.IPlayReadySecureStopServiceRequest; /** The number of items in the collection. */ returnValue: number; }; /** Gets a value that indicates whether there is a current item or the iterator is at the end of the PlayReady secure stop collection. */ @@ -40247,7 +40207,6 @@ declare namespace Windows { /** * Retrieves the stream type (audio or video) and stream identifier of the media stream descriptor. * @param descriptor The media stream from which this method gets information. - * @return */ getStreamInformation(descriptor: Windows.Media.Core.IMediaStreamDescriptor): { /** The type of the media stream. This type can be either Audio or Video. */ streamType: Windows.Media.Protection.PlayReady.NDMediaStreamType; /** The stream identifier for the media stream. */ returnValue: number; }; /** @@ -40266,7 +40225,7 @@ declare namespace Windows { * @param challengeDataBytes The data for the challenge message. * @return The result of the license fetch request. */ - sendLicenseFetchRequestAsync(sessionIDBytes: Array, challengeDataBytes: Array): Windows.Foundation.IAsyncOperation; + sendLicenseFetchRequestAsync(sessionIDBytes: Array, challengeDataBytes: Array): Windows.Foundation.IPromiseWithIAsyncOperation; /** * Sends the specified data in an asynchronous proximity detection response message. * @param pdType The type of proximity detection operation. This value can be UDP, TCP, or Transport-Agnostic. @@ -40275,7 +40234,7 @@ declare namespace Windows { * @param responseDataBytes The data for the response message. * @return The result of the proximity detection response operation. */ - sendProximityDetectionResponseAsync(pdType: Windows.Media.Protection.PlayReady.NDProximityDetectionType, transmitterChannelBytes: Array, sessionIDBytes: Array, responseDataBytes: Array): Windows.Foundation.IAsyncOperation; + sendProximityDetectionResponseAsync(pdType: Windows.Media.Protection.PlayReady.NDProximityDetectionType, transmitterChannelBytes: Array, sessionIDBytes: Array, responseDataBytes: Array): Windows.Foundation.IPromiseWithIAsyncOperation; /** * Sends the specified data in an asynchronous proximity detection start message. * @param pdType The type of proximity detection operation. This value can be UDP, TCP, or Transport-Agnostic. @@ -40284,14 +40243,14 @@ declare namespace Windows { * @param challengeDataBytes The data for the challenge message. * @return The result of the proximity detection start operation. */ - sendProximityDetectionStartAsync(pdType: Windows.Media.Protection.PlayReady.NDProximityDetectionType, transmitterChannelBytes: Array, sessionIDBytes: Array, challengeDataBytes: Array): Windows.Foundation.IAsyncOperation; + sendProximityDetectionStartAsync(pdType: Windows.Media.Protection.PlayReady.NDProximityDetectionType, transmitterChannelBytes: Array, sessionIDBytes: Array, challengeDataBytes: Array): Windows.Foundation.IPromiseWithIAsyncOperation; /** * Sends the specified data in an asynchronous registration request message. * @param sessionIDBytes The session identifier. The session identifier must be 16 bytes. * @param challengeDataBytes The data for the challenge message. * @return The result of the license fetch request. */ - sendRegistrationRequestAsync(sessionIDBytes: Array, challengeDataBytes: Array): Windows.Foundation.IAsyncOperation; + sendRegistrationRequestAsync(sessionIDBytes: Array, challengeDataBytes: Array): Windows.Foundation.IPromiseWithIAsyncOperation; } /** Provides the result, in the form of a response message, from the PlayReady-ND messenger. */ interface INDSendResult { @@ -41615,7 +41574,7 @@ declare namespace Windows { */ static getCurrentDownloadsForTransferGroupAsync(group: Windows.Networking.BackgroundTransfer.BackgroundTransferGroup): Windows.Foundation.IPromiseWithIAsyncOperation>; /** - * + * Used to request an unconstrained download operation. When this method is called the user is provided with a UI prompt that they can use to indicate their consent for an unconstrained operation. * @param operations The download operation to run unconstrained. * @return Indicates if the operations will run unconstrained. */ @@ -41815,7 +41774,7 @@ declare namespace Windows { */ static getCurrentUploadsForTransferGroupAsync(group: Windows.Networking.BackgroundTransfer.BackgroundTransferGroup): Windows.Foundation.IPromiseWithIAsyncOperation>; /** - * + * Used to request an unconstrained upload operation. When this method is called the user is provided with a UI prompt that they can use to indicate their consent for an unconstrained operation. * @param operations The upload operation to run unconstrained. * @return Indicates if the operations will run unconstrained. */ @@ -42740,7 +42699,6 @@ declare namespace Windows { /** * Gets the context of an authentication attempt. * @param evenToken The event token retrieved from the network operator hotspot authentication event . The token is a GUID in string format. - * @return */ static tryGetAuthenticationContext(evenToken: string): { /** The network operator hotspot authentication context. */ context: Windows.Networking.NetworkOperators.HotspotAuthenticationContext; /** If true, the authentication context was retrieved. The authentication context can only be retrieved if the calling application matches the application ID specified in the hotspot profile of the underlying WLAN connection and if the authentication hasn’t be completed by the corresponding context already or timed out. */ returnValue: boolean; }; /** @@ -44213,13 +44171,11 @@ declare namespace Windows { /** * Gets multiple DnssdServiceInstance objects from a DNS-SD service instance collection. * @param startIndex Index of the first collection item to be retrieved. - * @return */ getMany(startIndex: number): { /** The retrieved DnssdServiceInstance objects. */ items: Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance; /** The number of items in items. */ returnValue: number; }; /** * Gets a value indicating whether a given DnssdServiceInstance is at the specified index in this service instance collection. * @param value The DnssdServiceInstance to get the index of. - * @return */ indexOf(value: Windows.Networking.ServiceDiscovery.Dnssd.DnssdServiceInstance): { /** The index, if the DnssdServiceInstance is found. */ index: number; /** true if value is found at index, false otherwise. */ returnValue: boolean; }; /** Gets the number of items in the collection */ @@ -45024,7 +44980,7 @@ declare namespace Windows { * @param uri An absolute Uri for the server to connect to. * @return An asynchronous connect operation on a IWebSocket object. */ - connectAsync(uri: Windows.Foundation.Uri): Windows.Foundation.IAsyncAction; + connectAsync(uri: Windows.Foundation.Uri): Windows.Foundation.IPromiseWithIAsyncAction; /** * Adds an HTTP request header to the HTTP request message used in the WebSocket protocol handshake by the IWebSocket object. * @param headerName The name of the request header. @@ -45215,7 +45171,6 @@ declare namespace Windows { getSnapshotAsBuffer(): Windows.Storage.Streams.IBuffer; /** * This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime. - * @return */ getSnapshotAsBytes(): { /** This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime. */ buffer: number[]; /** This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime. */ bytesWritten: number; }; /** This API is not available to all apps. Unless your developer account is specially provisioned by Microsoft, calls to these APIs will fail at runtime. */ @@ -46574,31 +46529,26 @@ declare namespace Windows { clear(): void; /** * This method is reserved for internal use and is not intended to be used in your code. - * @return */ first(): any; /* unmapped return type */ /** * This method is reserved for internal use and is not intended to be used in your code. - * @return */ getView(): any; /* unmapped return type */ /** * This method is reserved for internal use and is not intended to be used in your code. * @param key Reserved. - * @return */ hasKey(key: string): any; /* unmapped return type */ /** * This method is reserved for internal use and is not intended to be used in your code. * @param key Reserved. * @param value Reserved. - * @return */ insert(key: string, value: any): any; /* unmapped return type */ /** * This method is reserved for internal use and is not intended to be used in your code. * @param key Reserved. - * @return */ lookup(key: string): any; /* unmapped return type */ /** This method is reserved for internal use and is not intended to be used in your code. */ @@ -48977,13 +48927,11 @@ declare namespace Windows { /** * Retrieves the storage items that start at the specified index in the access list or most recently used (MRU) list. * @param startIndex The zero-based index of the start of the items in the collection to retrieve. - * @return */ getMany(startIndex: number): { /** The items in the collection that start at startIndex. */ items: Windows.Storage.AccessCache.AccessListEntry; /** The number of items retrieved. */ returnValue: number; }; /** * Retrieves the index of the specified storage item in the access list or most recently used (MRU) list. * @param value The storage item. - * @return */ indexOf(value: Windows.Storage.AccessCache.AccessListEntry): { /** The zero-based index of the storage item. */ index: number; /** True if the specified storage item exists in the list; otherwise false. */ returnValue: boolean; }; /** Gets the number of storage items in the access list or most recently used (MRU) list. */ @@ -50697,6 +50645,7 @@ declare namespace Windows { producers: Windows.Foundation.Collections.IVector; /** Gets or sets the publisher of the video. */ publisher: string; + /** Gets or sets the rating associated with a video file. */ rating: number; /** * Retrieves the specified properties associated with the item. @@ -50948,7 +50897,6 @@ declare namespace Windows { /** * Retrieves the file name extensions that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the file name extensions in the collection to retrieve. - * @return */ getMany(startIndex: number): { /** The file name extensions in the collection that start at startIndex. */ items: string[]; /** The number of items retrieved. */ returnValue: number; }; /** @@ -50959,7 +50907,6 @@ declare namespace Windows { /** * Retrieves the index of a specified file name extension in the collection. * @param value The file name extension to find in the collection. - * @return */ indexOf(value: string): { /** The zero-based index of the file name extension if found. This parameter is set to zero if the file name extension is not found. */ index: number; /** True if the file name extension is found; otherwise FALSE. */ returnValue: boolean; }; /** @@ -51086,13 +51033,11 @@ declare namespace Windows { /** * Retrieves the StorageFile objects that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the objects in the collection to return. - * @return */ getMany(startIndex: number): { /** The items in the collection that start at startIndex. */ items: Windows.Storage.StorageFile; /** The number of items returned. */ returnValue: number; }; /** * Retrieves the index of a specified StorageFile object in the collection. * @param value The object to find in the collection. - * @return */ indexOf(value: Windows.Storage.StorageFile): { /** The zero-based index of the object if found. Zero is returned if the object is not found. */ index: number; /** True if the object is found; otherwise false. */ returnValue: boolean; }; /** Gets the number of StorageFile objects in the collection. */ @@ -51528,7 +51473,6 @@ declare namespace Windows { /** * Adds app-defined items with properties and content to the system index. * @param indexableContent The content properties to index. - * @return */ addAsync(indexableContent: Windows.Storage.Search.IIndexableContent): any; /* unmapped return type */ /** @@ -51557,19 +51501,16 @@ declare namespace Windows { createQuery(searchFilter: string, propertiesToRetrieve: Windows.Foundation.Collections.IIterable): Windows.Storage.Search.ContentIndexerQuery; /** * Removes all app-defined items from the ContentIndexer . - * @return */ deleteAllAsync(): any; /* unmapped return type */ /** * Removes the specified app-defined item from the ContentIndexer . * @param contentId The identifier of the item to remove. - * @return */ deleteAsync(contentId: string): any; /* unmapped return type */ /** * Removes the specified app-defined items from the ContentIndexer . * @param contentIds The identifier of the item to remove. - * @return */ deleteMultipleAsync(contentIds: Windows.Foundation.Collections.IIterable): any; /* unmapped return type */ /** @@ -51584,7 +51525,6 @@ declare namespace Windows { /** * Updates app content and properties in the ContentIndexer . * @param indexableContent The content properties to update. - * @return */ updateAsync(indexableContent: Windows.Storage.Search.IIndexableContent): any; /* unmapped return type */ } @@ -51753,7 +51693,6 @@ declare namespace Windows { /** * Retrieves the sort entries that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the sort entries in the collection to retrieve. - * @return */ getMany(startIndex: number): { /** The sort entries in the collection that start at startIndex. */ items: Windows.Storage.Search.SortEntry; /** The number of items retrieved. */ returnValue: number; }; /** @@ -51764,7 +51703,6 @@ declare namespace Windows { /** * Retrieves the index of a specified sort entry in the collection. * @param value The sort entry to find in the collection. - * @return */ indexOf(value: Windows.Storage.Search.SortEntry): { /** The zero-based index of the sort entry, if found. This parameter is set to zero if the sort entry is not found. */ index: number; /** True if the sort entry is found; otherwise false. */ returnValue: boolean; }; /** @@ -51978,7 +51916,7 @@ declare namespace Windows { * @param value The property value to match when searching the query results. * @return When this method completes successfully it returns the index of the matched item in the query results. */ - findStartIndexAsync(value: any): Windows.Foundation.IAsyncOperation; + findStartIndexAsync(value: any): Windows.Foundation.IPromiseWithIAsyncOperation; /** * Retrieves the query options used to create a StorageFileQueryResult , StorageFolderQueryResult , or StorageItemQueryResult object. * @return The query options. @@ -51988,7 +51926,7 @@ declare namespace Windows { * Retrieves the number of items that match the query that created a StorageFileQueryResult , StorageFolderQueryResult , or StorageItemQueryResult object. * @return When this method completes successfully, it returns the number of items that match the query. */ - getItemCountAsync(): Windows.Foundation.IAsyncOperation; + getItemCountAsync(): Windows.Foundation.IPromiseWithIAsyncOperation; /** Gets the folder originally used to create a StorageFileQueryResult , StorageFolderQueryResult , or StorageItemQueryResult object. This folder represents the scope of the query. */ folder: Windows.Storage.StorageFolder; } @@ -53292,7 +53230,7 @@ declare namespace Windows { * Opens a stream for random access. * @return The asynchronous operation. */ - openReadAsync(): Windows.Foundation.IAsyncOperation; + openReadAsync(): Windows.Foundation.IPromiseWithIAsyncOperation; } /** Supports random access of data in input and output streams for a specified data format. */ interface IRandomAccessStreamWithContentType extends Windows.Storage.Streams.IRandomAccessStream, Windows.Foundation.IClosable, Windows.Storage.Streams.IInputStream, Windows.Storage.Streams.IOutputStream, Windows.Storage.Streams.IContentTypeProvider {} @@ -53345,7 +53283,7 @@ declare namespace Windows { * @param options Specifies the type of the asynchronous read operation. * @return The asynchronous operation. */ - readAsync(buffer: Windows.Storage.Streams.IBuffer, count: number, options: Windows.Storage.Streams.InputStreamOptions): Windows.Foundation.IAsyncOperationWithProgress; + readAsync(buffer: Windows.Storage.Streams.IBuffer, count: number, options: Windows.Storage.Streams.InputStreamOptions): Windows.Foundation.IPromiseWithIAsyncOperationWithProgress; } /** Represents a sequential stream of bytes to be written. */ interface IOutputStream extends Windows.Foundation.IClosable { @@ -53353,13 +53291,13 @@ declare namespace Windows { * Flushes data asynchronously in a sequential stream. * @return The stream flush operation. */ - flushAsync(): Windows.Foundation.IAsyncOperation; + flushAsync(): Windows.Foundation.IPromiseWithIAsyncOperation; /** * Writes data asynchronously in a sequential stream. * @param buffer A buffer that contains the data to be written. * @return The byte writer operation. */ - writeAsync(buffer: Windows.Storage.Streams.IBuffer): Windows.Foundation.IAsyncOperationWithProgress; + writeAsync(buffer: Windows.Storage.Streams.IBuffer): Windows.Foundation.IPromiseWithIAsyncOperationWithProgress; } /** Characterizes the format of the data. */ interface IContentTypeProvider { @@ -53372,7 +53310,7 @@ declare namespace Windows { * Opens a stream for sequential read access. * @return The asynchronous operation. */ - openSequentialReadAsync(): Windows.Foundation.IAsyncOperation; + openSequentialReadAsync(): Windows.Foundation.IPromiseWithIAsyncOperation; } } /** A helper object that provides indexing names for Windows audio file properties. */ @@ -53490,17 +53428,17 @@ declare namespace Windows { * @param option A value that indicates whether to delete the item permanently. * @return No object or value is returned by this method when it completes. */ - deleteAsync(option: Windows.Storage.StorageDeleteOption): Windows.Foundation.IAsyncAction; + deleteAsync(option: Windows.Storage.StorageDeleteOption): Windows.Foundation.IPromiseWithIAsyncAction; /** * Deletes the current item. * @return No object or value is returned by this method when it completes. */ - deleteAsync(): Windows.Foundation.IAsyncAction; + deleteAsync(): Windows.Foundation.IPromiseWithIAsyncAction; /** * Gets the basic properties of the current item (like a file or folder). * @return When this method completes successfully, it returns the basic properties of the current item as a BasicProperties object. */ - getBasicPropertiesAsync(): Windows.Foundation.IAsyncOperation; + getBasicPropertiesAsync(): Windows.Foundation.IPromiseWithIAsyncOperation; /** * Determines whether the current IStorageItem matches the specified StorageItemTypes value. * @param type The value to match against. @@ -53513,13 +53451,13 @@ declare namespace Windows { * @param option The enum value that determines how Windows responds if the desiredName is the same as the name of an existing item in the current item's location. * @return No object or value is returned by this method when it completes. */ - renameAsync(desiredName: string, option: Windows.Storage.NameCollisionOption): Windows.Foundation.IAsyncAction; + renameAsync(desiredName: string, option: Windows.Storage.NameCollisionOption): Windows.Foundation.IPromiseWithIAsyncAction; /** * Renames the current item. * @param desiredName The desired, new name of the item. * @return No object or value is returned by this method when it completes. */ - renameAsync(desiredName: string): Windows.Foundation.IAsyncAction; + renameAsync(desiredName: string): Windows.Foundation.IPromiseWithIAsyncAction; /** Gets the attributes of a storage item. */ attributes: Windows.Storage.FileAttributes; /** Gets the date and time when the current item was created. */ @@ -53536,7 +53474,7 @@ declare namespace Windows { * @param fileToReplace The file to replace. * @return No object or value is returned when this method completes. */ - copyAndReplaceAsync(fileToReplace: Windows.Storage.IStorageFile): Windows.Foundation.IAsyncAction; + copyAndReplaceAsync(fileToReplace: Windows.Storage.IStorageFile): Windows.Foundation.IPromiseWithIAsyncAction; /** * Creates a copy of the file in the specified folder, using the desired name. This method also specifies what to do if an existing file in the specified folder has the same name. * @param destinationFolder The destination folder where the copy is created. @@ -53544,32 +53482,32 @@ declare namespace Windows { * @param option An enum value that determines how Windows responds if the desiredNewName is the same as the name of an existing file in the destination folder. * @return When this method completes, it returns a StorageFile that represents the copy. */ - copyAsync(destinationFolder: Windows.Storage.IStorageFolder, desiredNewName: string, option: Windows.Storage.NameCollisionOption): Windows.Foundation.IAsyncOperation; + copyAsync(destinationFolder: Windows.Storage.IStorageFolder, desiredNewName: string, option: Windows.Storage.NameCollisionOption): Windows.Foundation.IPromiseWithIAsyncOperation; /** * Creates a copy of the file in the specified folder, using the desired name. * @param destinationFolder The destination folder where the copy is created. * @param desiredNewName The desired name of the copy. * @return When this method completes, it returns a StorageFile that represents the copy. */ - copyAsync(destinationFolder: Windows.Storage.IStorageFolder, desiredNewName: string): Windows.Foundation.IAsyncOperation; + copyAsync(destinationFolder: Windows.Storage.IStorageFolder, desiredNewName: string): Windows.Foundation.IPromiseWithIAsyncOperation; /** * Creates a copy of the file in the specified folder. * @param destinationFolder The destination folder where the copy is created. * @return When this method completes, it returns a StorageFile that represents the copy. */ - copyAsync(destinationFolder: Windows.Storage.IStorageFolder): Windows.Foundation.IAsyncOperation; + copyAsync(destinationFolder: Windows.Storage.IStorageFolder): Windows.Foundation.IPromiseWithIAsyncOperation; /** * Moves the current file to the location of the specified file and replaces the specified file in that location. * @param fileToReplace The file to replace. * @return No object or value is returned by this method. */ - moveAndReplaceAsync(fileToReplace: Windows.Storage.IStorageFile): Windows.Foundation.IAsyncAction; + moveAndReplaceAsync(fileToReplace: Windows.Storage.IStorageFile): Windows.Foundation.IPromiseWithIAsyncAction; /** * Moves the current file to the specified folder. * @param destinationFolder The destination folder where the file is moved. * @return No object or value is returned by this method. */ - moveAsync(destinationFolder: Windows.Storage.IStorageFolder): Windows.Foundation.IAsyncAction; + moveAsync(destinationFolder: Windows.Storage.IStorageFolder): Windows.Foundation.IPromiseWithIAsyncAction; /** * Moves the current file to the specified folder and renames the file according to the desired name. This method also specifies what to do if a file with the same name already exists in the specified folder. * @param destinationFolder The destination folder where the file is moved. @@ -53577,25 +53515,25 @@ declare namespace Windows { * @param option An enum value that determines how Windows responds if the desiredNewName is the same as the name of an existing file in the destination folder. * @return No object or value is returned by this method. */ - moveAsync(destinationFolder: Windows.Storage.IStorageFolder, desiredNewName: string, option: Windows.Storage.NameCollisionOption): Windows.Foundation.IAsyncAction; + moveAsync(destinationFolder: Windows.Storage.IStorageFolder, desiredNewName: string, option: Windows.Storage.NameCollisionOption): Windows.Foundation.IPromiseWithIAsyncAction; /** * Moves the current file to the specified folder and renames the file according to the desired name. * @param destinationFolder The destination folder where the file is moved. * @param desiredNewName The desired name of the file after it is moved. * @return No object or value is returned by this method. */ - moveAsync(destinationFolder: Windows.Storage.IStorageFolder, desiredNewName: string): Windows.Foundation.IAsyncAction; + moveAsync(destinationFolder: Windows.Storage.IStorageFolder, desiredNewName: string): Windows.Foundation.IPromiseWithIAsyncAction; /** * Opens a random-access stream over the file. * @param accessMode The type of access to allow. * @return When this method completes, it returns the random-access stream (type IRandomAccessStream ). */ - openAsync(accessMode: Windows.Storage.FileAccessMode): Windows.Foundation.IAsyncOperation; + openAsync(accessMode: Windows.Storage.FileAccessMode): Windows.Foundation.IPromiseWithIAsyncOperation; /** * Opens a transacted, random-access stream for writing to the file. * @return When this method completes, it returns a StorageStreamTransaction that contains the random-access stream and methods that can be used to complete transactions. */ - openTransactedWriteAsync(): Windows.Foundation.IAsyncOperation; + openTransactedWriteAsync(): Windows.Foundation.IPromiseWithIAsyncOperation; /** Gets the MIME type of the contents of the file. */ contentType: string; /** Gets the type (file name extension) of the file. */ @@ -53609,59 +53547,59 @@ declare namespace Windows { * @param options The enum value that determines how Windows responds if the desiredName is the same as the name of an existing file in the current folder. * @return When this method completes, it returns the new file as a StorageFile . */ - createFileAsync(desiredName: string, options: Windows.Storage.CreationCollisionOption): Windows.Foundation.IAsyncOperation; + createFileAsync(desiredName: string, options: Windows.Storage.CreationCollisionOption): Windows.Foundation.IPromiseWithIAsyncOperation; /** * Creates a new file in the current folder. * @param desiredName The desired name of the file to create. * @return When this method completes, it returns the new file as a StorageFile . */ - createFileAsync(desiredName: string): Windows.Foundation.IAsyncOperation; + createFileAsync(desiredName: string): Windows.Foundation.IPromiseWithIAsyncOperation; /** * Creates a new folder in the current folder. * @param desiredName The desired name of the folder to create. * @return When this method completes, it returns the new folder as a StorageFolder . */ - createFolderAsync(desiredName: string): Windows.Foundation.IAsyncOperation; + createFolderAsync(desiredName: string): Windows.Foundation.IPromiseWithIAsyncOperation; /** * Creates a new folder in the current folder, and specifies what to do if a folder with the same name already exists in the current folder. * @param desiredName The desired name of the folder to create. * @param options The enum value that determines how Windows responds if the desiredName is the same as the name of an existing folder in the current folder. * @return When this method completes, it returns the new folder as a StorageFolder . */ - createFolderAsync(desiredName: string, options: Windows.Storage.CreationCollisionOption): Windows.Foundation.IAsyncOperation; + createFolderAsync(desiredName: string, options: Windows.Storage.CreationCollisionOption): Windows.Foundation.IPromiseWithIAsyncOperation; /** * Gets the specified file from the current folder. * @param name The name (or path relative to the current folder) of the file to retrieve. * @return When this method completes successfully, it returns a StorageFile that represents the file. */ - getFileAsync(name: string): Windows.Foundation.IAsyncOperation; + getFileAsync(name: string): Windows.Foundation.IPromiseWithIAsyncOperation; /** * Gets the files from the current folder. * @return When this method completes successfully, it returns a list of the files (type IVectorView ) in the folder. Each file in the list is represented by a StorageFile object. */ - getFilesAsync(): Windows.Foundation.IAsyncOperation>; + getFilesAsync(): Windows.Foundation.IPromiseWithIAsyncOperation>; /** * Gets the specified folder from the current folder. * @param name The name of the child folder to retrieve. * @return When this method completes successfully, it returns a StorageFolder that represents the child folder. */ - getFolderAsync(name: string): Windows.Foundation.IAsyncOperation; + getFolderAsync(name: string): Windows.Foundation.IPromiseWithIAsyncOperation; /** * Gets the folders in the current folder. * @return When this method completes successfully, it returns a list of the files (type IVectorView ). Each folder in the list is represented by a StorageFolder . */ - getFoldersAsync(): Windows.Foundation.IAsyncOperation>; + getFoldersAsync(): Windows.Foundation.IPromiseWithIAsyncOperation>; /** * Gets the specified item from the IStorageFolder . * @param name The name of the item to retrieve. * @return When this method completes successfully, it returns the file or folder (type IStorageItem ). */ - getItemAsync(name: string): Windows.Foundation.IAsyncOperation; + getItemAsync(name: string): Windows.Foundation.IPromiseWithIAsyncOperation; /** * Gets the items from the current folder. * @return When this method completes successfully, it returns a list of the files and folders (type IVectorView ). The files and folders in the list are represented by objects of type IStorageItem . */ - getItemsAsync(): Windows.Foundation.IAsyncOperation>; + getItemsAsync(): Windows.Foundation.IPromiseWithIAsyncOperation>; } /** Represents a method that handles the request to set the version of the application data in the application data store. */ type ApplicationDataSetVersionHandler = (setVersionRequest: Windows.Storage.SetVersionRequest) => void; @@ -54528,7 +54466,6 @@ declare namespace Windows { size: number; /** * Splits the map view into two views. - * @return */ split(): { /** The first part of the original map. */ first: Windows.Foundation.Collections.IMapView; /** The second part of the original map. */ second: Windows.Foundation.Collections.IMapView; }; } @@ -56944,7 +56881,6 @@ declare namespace Windows { /** * Attempts to perform the transformation on the specified input point. * @param inPoint The original input point. - * @return */ tryTransform(inPoint: Windows.Foundation.Point): { /** The transformed input point. */ outPoint: Windows.Foundation.Point; /** True if inPoint was transformed successfully; otherwise, false. */ returnValue: boolean; }; /** Gets the inverse of the specified transformation. */ @@ -60174,6 +60110,7 @@ declare namespace Windows { currentlyShownApplicationViewId: number; /** Gets the activation type. */ kind: Windows.ApplicationModel.Activation.ActivationKind; + /** (Applies to Windows only) Gets an indication about whether a pre-launch has been activated. */ prelaunchActivated: boolean; /** Gets the execution state of the app before this activation. */ previousExecutionState: Windows.ApplicationModel.Activation.ApplicationExecutionState; @@ -60886,7 +60823,7 @@ declare namespace Windows { * @param request The HTTP request message to send. * @return The object representing the asynchronous operation. */ - sendRequestAsync(request: Windows.Web.Http.HttpRequestMessage): Windows.Foundation.IAsyncOperationWithProgress; + sendRequestAsync(request: Windows.Web.Http.HttpRequestMessage): Windows.Foundation.IPromiseWithIAsyncOperationWithProgress; } } /** Provides support for HTTP headers used by the Windows.Web.Http namespace for Windows Store apps that target HTTP services. */ @@ -60914,7 +60851,6 @@ declare namespace Windows { /** * Retrieves the HttpNameValueHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpNameValueHeaderValue items in the HttpCacheDirectiveHeaderValueCollection . - * @return */ getMany(startIndex: number): { /** An array of HttpNameValueHeaderValue items that start at startIndex in the HttpCacheDirectiveHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpNameValueHeaderValue; /** The number of HttpNameValueHeaderValue items retrieved. */ returnValue: number; }; /** @@ -60925,7 +60861,6 @@ declare namespace Windows { /** * Retrieves the index of an HttpNameValueHeaderValue in the collection. * @param value The HttpNameValueHeaderValue to find in the HttpCacheDirectiveHeaderValueCollection . - * @return */ indexOf(value: Windows.Web.Http.Headers.HttpNameValueHeaderValue): { /** The index of the HttpNameValueHeaderValue in the HttpCacheDirectiveHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -60998,7 +60933,6 @@ declare namespace Windows { /** * Determines whether a string is valid HttpChallengeHeaderValue information. * @param input The string to validate. - * @return */ static tryParse(input: string): { /** The HttpChallengeHeaderValue version of the string. */ challengeHeaderValue: Windows.Web.Http.Headers.HttpChallengeHeaderValue; /** true if input is valid HttpChallengeHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -61042,7 +60976,6 @@ declare namespace Windows { /** * Retrieves the HttpChallengeHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpChallengeHeaderValue items in the HttpChallengeHeaderValueCollection . - * @return */ getMany(startIndex: number): { /** An array of HttpChallengeHeaderValue items that start at startIndex in the HttpChallengeHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpChallengeHeaderValue; /** The number of HttpChallengeHeaderValue items retrieved. */ returnValue: number; }; /** @@ -61053,7 +60986,6 @@ declare namespace Windows { /** * Retrieves the index of an HttpChallengeHeaderValue in the collection. * @param value The HttpChallengeHeaderValue to find in the HttpChallengeHeaderValueCollection . - * @return */ indexOf(value: Windows.Web.Http.Headers.HttpChallengeHeaderValue): { /** The index of the HttpChallengeHeaderValue in the HttpChallengeHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -61118,7 +61050,6 @@ declare namespace Windows { /** * Determines whether a string is valid HttpConnectionOptionHeaderValue information. * @param input The string to validate. - * @return */ static tryParse(input: string): { /** The HttpConnectionOptionHeaderValue version of the string. */ connectionOptionHeaderValue: Windows.Web.Http.Headers.HttpConnectionOptionHeaderValue; /** true if input is valid HttpConnectionOptionHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -61152,7 +61083,6 @@ declare namespace Windows { /** * Retrieves the HttpConnectionOptionHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpConnectionOptionHeaderValue items in the HttpConnectionOptionHeaderValueCollection . - * @return */ getMany(startIndex: number): { /** An array of HttpConnectionOptionHeaderValue items that start at startIndex in the HttpConnectionOptionHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpConnectionOptionHeaderValue; /** The number of HttpConnectionOptionHeaderValue items retrieved. */ returnValue: number; }; /** @@ -61163,7 +61093,6 @@ declare namespace Windows { /** * Retrieves the index of an HttpConnectionOptionHeaderValue in the collection. * @param value The HttpConnectionOptionHeaderValue to find in the HttpConnectionOptionHeaderValueCollection . - * @return */ indexOf(value: Windows.Web.Http.Headers.HttpConnectionOptionHeaderValue): { /** The index of the HttpConnectionOptionHeaderValue in the HttpConnectionOptionHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -61228,7 +61157,6 @@ declare namespace Windows { /** * Determines whether a string is valid HttpContentCodingHeaderValue information. * @param input The string to validate. - * @return */ static tryParse(input: string): { /** The HttpContentCodingHeaderValue version of the string. */ contentCodingHeaderValue: Windows.Web.Http.Headers.HttpContentCodingHeaderValue; /** true if input is valid HttpContentCodingHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -61262,7 +61190,6 @@ declare namespace Windows { /** * Retrieves the HttpContentCodingHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpContentCodingHeaderValue items in the HttpContentCodingHeaderValueCollection . - * @return */ getMany(startIndex: number): { /** An array of HttpContentCodingHeaderValue items that start at startIndex in the HttpContentCodingHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpContentCodingHeaderValue; /** The number of HttpContentCodingHeaderValue items retrieved. */ returnValue: number; }; /** @@ -61273,7 +61200,6 @@ declare namespace Windows { /** * Retrieves the index of an HttpContentCodingHeaderValue in the collection. * @param value The HttpContentCodingHeaderValue to find in the HttpContentCodingHeaderValueCollection . - * @return */ indexOf(value: Windows.Web.Http.Headers.HttpContentCodingHeaderValue): { /** The index of the HttpContentCodingHeaderValue in the HttpContentCodingHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -61338,7 +61264,6 @@ declare namespace Windows { /** * Determines whether a string is valid HttpContentCodingWithQualityHeaderValue information. * @param input The string to validate. - * @return */ static tryParse(input: string): { /** The HttpContentCodingWithQualityHeaderValue version of the string. */ contentCodingWithQualityHeaderValue: Windows.Web.Http.Headers.HttpContentCodingWithQualityHeaderValue; /** true if input is valid HttpContentCodingWithQualityHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -61380,7 +61305,6 @@ declare namespace Windows { /** * Retrieves the HttpContentCodingWithQualityHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpContentCodingWithQualityHeaderValue items in the HttpContentCodingWithQualityHeaderValueCollection . - * @return */ getMany(startIndex: number): { /** An array of HttpContentCodingWithQualityHeaderValue items that start at startIndex in the HttpContentCodingWithQualityHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpContentCodingWithQualityHeaderValue; /** The number of HttpContentCodingWithQualityHeaderValue items retrieved. */ returnValue: number; }; /** @@ -61391,7 +61315,6 @@ declare namespace Windows { /** * Retrieves the index of an HttpContentCodingWithQualityHeaderValue in the collection. * @param value The HttpContentCodingWithQualityHeaderValue to find in the HttpContentCodingWithQualityHeaderValueCollection . - * @return */ indexOf(value: Windows.Web.Http.Headers.HttpContentCodingWithQualityHeaderValue): { /** The index of the HttpContentCodingWithQualityHeaderValue in the HttpContentCodingWithQualityHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -61456,7 +61379,6 @@ declare namespace Windows { /** * Determines whether a string is valid HttpContentDispositionHeaderValue information. * @param input The string to validate. - * @return */ static tryParse(input: string): { /** The HttpContentDispositionHeaderValue version of the string. */ contentDispositionHeaderValue: Windows.Web.Http.Headers.HttpContentDispositionHeaderValue; /** true if input is valid HttpContentDispositionHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -61570,7 +61492,6 @@ declare namespace Windows { /** * Determines whether a string is valid HttpContentRangeHeaderValue information. * @param input The string to validate. - * @return */ static tryParse(input: string): { /** The HttpContentRangeHeaderValue version of the string. */ contentRangeHeaderValue: Windows.Web.Http.Headers.HttpContentRangeHeaderValue; /** true if input is valid HttpContentRangeHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -61611,7 +61532,6 @@ declare namespace Windows { /** * Determines whether a string is valid HttpCookiePairHeaderValue information. * @param input The string to validate. - * @return */ static tryParse(input: string): { /** The HttpCookiePairHeaderValue version of the string. */ cookiePairHeaderValue: Windows.Web.Http.Headers.HttpCookiePairHeaderValue; /** true if input is valid HttpCookiePairHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -61653,7 +61573,6 @@ declare namespace Windows { /** * Retrieves the HttpCookiePairHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpCookiePairHeaderValue items in the HttpCookiePairHeaderValueCollection . - * @return */ getMany(startIndex: number): { /** An array of HttpCookiePairHeaderValue items that start at startIndex in the HttpCookiePairHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpCookiePairHeaderValue; /** The number of HttpCookiePairHeaderValue items retrieved. */ returnValue: number; }; /** @@ -61664,7 +61583,6 @@ declare namespace Windows { /** * Retrieves the index of an HttpCookiePairHeaderValue in the collection. * @param value The HttpCookiePairHeaderValue to find in the HttpCookiePairHeaderValueCollection . - * @return */ indexOf(value: Windows.Web.Http.Headers.HttpCookiePairHeaderValue): { /** The index of the HttpCookiePairHeaderValue in the HttpCookiePairHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -61729,7 +61647,6 @@ declare namespace Windows { /** * Determines whether a string is valid HttpCredentialsHeaderValue information. * @param input The string to validate. - * @return */ static tryParse(input: string): { /** The HttpCredentialsHeaderValue version of the string. */ credentialsHeaderValue: Windows.Web.Http.Headers.HttpCredentialsHeaderValue; /** true if input is valid HttpCredentialsHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -61761,7 +61678,6 @@ declare namespace Windows { /** * Determines whether a string is valid HttpDateOrDeltaHeaderValue information. * @param input The string to validate. - * @return */ static tryParse(input: string): { /** The HttpDateOrDeltaHeaderValue version of the string. */ dateOrDeltaHeaderValue: Windows.Web.Http.Headers.HttpDateOrDeltaHeaderValue; /** true if input is valid HttpDateOrDeltaHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** Gets the value of the HTTP-date information used in the Retry-After HTTP header. */ @@ -61780,7 +61696,6 @@ declare namespace Windows { /** * Determines whether a string is valid HttpCredentialsHeaderValue information. * @param input The string to validate. - * @return */ static tryParse(input: string): { /** The HttpExpectationHeaderValue version of the string. */ expectationHeaderValue: Windows.Web.Http.Headers.HttpExpectationHeaderValue; /** true if input is valid HttpExpectationHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -61824,7 +61739,6 @@ declare namespace Windows { /** * Retrieves the HttpExpectationHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpExpectationHeaderValue items in the HttpExpectationHeaderValueCollection . - * @return */ getMany(startIndex: number): { /** An array of HttpExpectationHeaderValue items that start at startIndex in the HttpExpectationHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpExpectationHeaderValue; /** The number of items retrieved. */ returnValue: number; }; /** @@ -61835,7 +61749,6 @@ declare namespace Windows { /** * Retrieves the index of an HttpExpectationHeaderValue in the collection. * @param value The HttpExpectationHeaderValue to find in the HttpExpectationHeaderValueCollection . - * @return */ indexOf(value: Windows.Web.Http.Headers.HttpExpectationHeaderValue): { /** The index of the HttpExpectationHeaderValue in the HttpExpectationHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -61912,7 +61825,6 @@ declare namespace Windows { /** * Retrieves the Language items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the Language items in the HttpLanguageHeaderValueCollection . - * @return */ getMany(startIndex: number): { /** An array of Language items that start at startIndex in the HttpLanguageHeaderValueCollection . */ items: Windows.Globalization.Language; /** The number of items retrieved. */ returnValue: number; }; /** @@ -61923,7 +61835,6 @@ declare namespace Windows { /** * Retrieves the index of a Language in the collection. * @param value The item to find in the HttpLanguageHeaderValueCollection . - * @return */ indexOf(value: Windows.Globalization.Language): { /** The index of the Language item in the HttpLanguageHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -61988,7 +61899,6 @@ declare namespace Windows { /** * Determines whether a string is valid HttpLanguageRangeWithQualityHeaderValue information. * @param input The string to validate. - * @return */ static tryParse(input: string): { /** The HttpLanguageRangeWithQualityHeaderValue version of the string. */ languageRangeWithQualityHeaderValue: Windows.Web.Http.Headers.HttpLanguageRangeWithQualityHeaderValue; /** true if input is valid HttpLanguageRangeWithQualityHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -62030,7 +61940,6 @@ declare namespace Windows { /** * Retrieves the HttpLanguageRangeWithQualityHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpLanguageRangeWithQualityHeaderValue items in the HttpLanguageRangeWithQualityHeaderValueCollection . - * @return */ getMany(startIndex: number): { /** An array of HttpLanguageRangeWithQualityHeaderValue items that start at startIndex in the HttpLanguageRangeWithQualityHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpLanguageRangeWithQualityHeaderValue; /** The number of items retrieved. */ returnValue: number; }; /** @@ -62041,7 +61950,6 @@ declare namespace Windows { /** * Retrieves the index of an HttpLanguageRangeWithQualityHeaderValue in the collection. * @param value The HttpLanguageRangeWithQualityHeaderValue to find in the HttpLanguageRangeWithQualityHeaderValueCollection . - * @return */ indexOf(value: Windows.Web.Http.Headers.HttpLanguageRangeWithQualityHeaderValue): { /** The index of the HttpLanguageRangeWithQualityHeaderValue in the HttpLanguageRangeWithQualityHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -62106,7 +62014,6 @@ declare namespace Windows { /** * Determines whether a string is valid HttpMediaTypeHeaderValue information. * @param input The string to validate. - * @return */ static tryParse(input: string): { /** The HttpMediaTypeHeaderValue version of the string. */ mediaTypeHeaderValue: Windows.Web.Http.Headers.HttpMediaTypeHeaderValue; /** true if input is valid HttpMediaTypeHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -62132,7 +62039,6 @@ declare namespace Windows { /** * Determines whether a string is valid HttpMediaTypeWithQualityHeaderValue information. * @param input The string to validate. - * @return */ static tryParse(input: string): { /** The HttpMediaTypeWithQualityHeaderValue version of the string. */ mediaTypeWithQualityHeaderValue: Windows.Web.Http.Headers.HttpMediaTypeWithQualityHeaderValue; /** true if input is valid HttpMediaTypeWithQualityHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -62178,7 +62084,6 @@ declare namespace Windows { /** * Retrieves the HttpMediaTypeWithQualityHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpMediaTypeWithQualityHeaderValue items in the HttpMediaTypeWithQualityHeaderValueCollection . - * @return */ getMany(startIndex: number): { /** An array of HttpMediaTypeWithQualityHeaderValue items that start at startIndex in the HttpMediaTypeWithQualityHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpMediaTypeWithQualityHeaderValue; /** The number of items retrieved. */ returnValue: number; }; /** @@ -62189,7 +62094,6 @@ declare namespace Windows { /** * Retrieves the index of an HttpMediaTypeWithQualityHeaderValue in the collection. * @param value The HttpMediaTypeWithQualityHeaderValue to find in the HttpMediaTypeWithQualityHeaderValueCollection . - * @return */ indexOf(value: Windows.Web.Http.Headers.HttpMediaTypeWithQualityHeaderValue): { /** The index of the HttpMediaTypeWithQualityHeaderValue in the HttpMediaTypeWithQualityHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -62266,7 +62170,6 @@ declare namespace Windows { /** * Retrieves the HttpMethod items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpMethod items in the HttpMethodHeaderValueCollection . - * @return */ getMany(startIndex: number): { /** An array of HttpMethod items that start at startIndex in the HttpMethodHeaderValueCollection . */ items: Windows.Web.Http.HttpMethod; /** The number of items retrieved. */ returnValue: number; }; /** @@ -62277,7 +62180,6 @@ declare namespace Windows { /** * Retrieves the index of an HttpMethod in the collection. * @param value The HttpMethod to find in the HttpMethodHeaderValueCollection . - * @return */ indexOf(value: Windows.Web.Http.HttpMethod): { /** The index of the HttpMethod in the HttpMethodHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -62342,7 +62244,6 @@ declare namespace Windows { /** * Determines whether a string is valid HttpNameValueHeaderValue information. * @param input The string to validate. - * @return */ static tryParse(input: string): { /** The HttpNameValueHeaderValue version of the string. */ nameValueHeaderValue: Windows.Web.Http.Headers.HttpNameValueHeaderValue; /** true if input is valid HttpNameValueHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -62372,7 +62273,6 @@ declare namespace Windows { /** * Determines whether a string is valid HttpProductHeaderValue information. * @param input The string to validate. - * @return */ static tryParse(input: string): { /** The HttpProductHeaderValue version of the string. */ productHeaderValue: Windows.Web.Http.Headers.HttpProductHeaderValue; /** true if input is valid HttpProductHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -62402,7 +62302,6 @@ declare namespace Windows { /** * Determines whether a string is valid HttpProductInfoHeaderValue information. * @param input The string to validate. - * @return */ static tryParse(input: string): { /** The HttpProductInfoHeaderValue version of the string. */ productInfoHeaderValue: Windows.Web.Http.Headers.HttpProductInfoHeaderValue; /** true if input is valid HttpProductInfoHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -62444,7 +62343,6 @@ declare namespace Windows { /** * Retrieves the HttpProductInfoHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpProductInfoHeaderValue items in the HttpProductInfoHeaderValueCollection . - * @return */ getMany(startIndex: number): { /** An array of HttpProductInfoHeaderValue items that start at startIndex in the HttpProductInfoHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpProductInfoHeaderValue; /** The number of items retrieved. */ returnValue: number; }; /** @@ -62461,7 +62359,6 @@ declare namespace Windows { /** * Retrieves the index of an HttpProductInfoHeaderValue in the collection. * @param value The HttpProductInfoHeaderValue to find in the HttpProductInfoHeaderValueCollection . - * @return */ indexOf(value: Windows.Web.Http.Headers.HttpProductInfoHeaderValue): { /** The index of the HttpProductInfoHeaderValue in the HttpProductInfoHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -62696,7 +62593,6 @@ declare namespace Windows { /** * Determines whether a string is valid HttpTransferCodingHeaderValue information. * @param input The string to validate. - * @return */ static tryParse(input: string): { /** The HttpTransferCodingHeaderValue version of the string. */ transferCodingHeaderValue: Windows.Web.Http.Headers.HttpTransferCodingHeaderValue; /** true if input is valid HttpTransferCodingHeaderValue information; otherwise, false. */ returnValue: boolean; }; /** @@ -62732,7 +62628,6 @@ declare namespace Windows { /** * Retrieves the HttpTransferCodingHeaderValue items that start at the specified index in the collection. * @param startIndex The zero-based index of the start of the HttpTransferCodingHeaderValue items in the HttpTransferCodingHeaderValueCollection . - * @return */ getMany(startIndex: number): { /** An array of HttpTransferCodingHeaderValue items that start at startIndex in the HttpTransferCodingHeaderValueCollection . */ items: Windows.Web.Http.Headers.HttpTransferCodingHeaderValue; /** The number of items retrieved. */ returnValue: number; }; /** @@ -62755,7 +62650,6 @@ declare namespace Windows { /** * Retrieves the index of an HttpTransferCodingHeaderValue in the collection. * @param value The HttpTransferCodingHeaderValue to find in the HttpTransferCodingHeaderValueCollection . - * @return */ indexOf(value: Windows.Web.Http.Headers.HttpTransferCodingHeaderValue): { /** The index of the HttpTransferCodingHeaderValue in the HttpTransferCodingHeaderValueCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** @@ -62844,7 +62738,6 @@ declare namespace Windows { readAsStringAsync(): Windows.Foundation.IPromiseWithIAsyncOperationWithProgress; /** * Computes the HttpBufferContent length in bytes. - * @return */ tryComputeLength(): { /** The length in bytes of the HttpBufferContent . */ length: number; /** true if length is a valid length; otherwise, false. */ returnValue: boolean; }; /** @@ -62979,13 +62872,11 @@ declare namespace Windows { /** * Retrieves the HttpCookie items that start at the specified index in the HttpCookieCollection . * @param startIndex The zero-based index of the start of the HttpCookie items in the HttpCookieCollection . - * @return */ getMany(startIndex: number): { /** The HttpCookie items that start at startIndex in the HttpCookieCollection . */ items: Windows.Web.Http.HttpCookie; /** The number of HttpCookie items retrieved. */ returnValue: number; }; /** * Retrieves the index of an HttpCookie in the HttpCookieCollection . * @param value The HttpCookie to find in the HttpCookieCollection . - * @return */ indexOf(value: Windows.Web.Http.HttpCookie): { /** The index of the HttpCookie in the HttpCookieCollection . */ index: number; /** Indicates whether the item is found. */ returnValue: boolean; }; /** Gets the number of cookies in the HttpCookieCollection . */ @@ -63053,7 +62944,6 @@ declare namespace Windows { readAsStringAsync(): Windows.Foundation.IPromiseWithIAsyncOperationWithProgress; /** * Computes the HttpFormUrlEncodedContent length in bytes. - * @return */ tryComputeLength(): { /** The length in bytes of the HttpFormUrlEncodedContent . */ length: number; /** true if length is a valid length; otherwise, false. */ returnValue: boolean; }; /** @@ -63138,7 +63028,6 @@ declare namespace Windows { readAsStringAsync(): Windows.Foundation.IPromiseWithIAsyncOperationWithProgress; /** * Determines whether the HttpMultipartContent has a valid length in bytes. - * @return */ tryComputeLength(): { /** The length in bytes of the HttpMultipartContent . */ length: number; /** true if length is a valid length; otherwise, false. */ returnValue: boolean; }; /** @@ -63206,7 +63095,6 @@ declare namespace Windows { readAsStringAsync(): Windows.Foundation.IPromiseWithIAsyncOperationWithProgress; /** * Determines whether the HttpMultipartFormDataContent has a valid length in bytes. - * @return */ tryComputeLength(): { /** The length in bytes of the HttpMultipartFormDataContent . */ length: number; /** true if length is a valid length; otherwise, false. */ returnValue: boolean; }; /** @@ -63458,7 +63346,6 @@ declare namespace Windows { readAsStringAsync(): Windows.Foundation.IPromiseWithIAsyncOperationWithProgress; /** * Determines whether the HttpStreamContent has a valid length in bytes. - * @return */ tryComputeLength(): { /** The length in bytes of the HttpStreamContent . */ length: number; /** true if length is a valid length; otherwise, false. */ returnValue: boolean; }; /** @@ -63514,7 +63401,6 @@ declare namespace Windows { readAsStringAsync(): Windows.Foundation.IPromiseWithIAsyncOperationWithProgress; /** * Compute the HttpStringContent length in bytes. - * @return */ tryComputeLength(): { /** The length in bytes of the HttpStringContent . */ length: number; /** true if length is a valid length; otherwise, false. */ returnValue: boolean; }; /** @@ -63567,25 +63453,24 @@ declare namespace Windows { * Serialize the HTTP content into memory as an asynchronous operation. * @return The object that represents the asynchronous operation. */ - bufferAllAsync(): Windows.Foundation.IAsyncOperationWithProgress; + bufferAllAsync(): Windows.Foundation.IPromiseWithIAsyncOperationWithProgress; /** * Serialize the HTTP content to a buffer as an asynchronous operation. * @return The object representing the asynchronous operation. */ - readAsBufferAsync(): Windows.Foundation.IAsyncOperationWithProgress; + readAsBufferAsync(): Windows.Foundation.IPromiseWithIAsyncOperationWithProgress; /** * Serialize the HTTP content and return an input stream that represents the content as an asynchronous operation. * @return The object representing the asynchronous operation. */ - readAsInputStreamAsync(): Windows.Foundation.IAsyncOperationWithProgress; + readAsInputStreamAsync(): Windows.Foundation.IPromiseWithIAsyncOperationWithProgress; /** * Serialize the HTTP content to a String as an asynchronous operation. * @return The object representing the asynchronous operation. */ - readAsStringAsync(): Windows.Foundation.IAsyncOperationWithProgress; + readAsStringAsync(): Windows.Foundation.IPromiseWithIAsyncOperationWithProgress; /** * Determines whether the HTTP content has a valid length in bytes. - * @return */ tryComputeLength(): { /** The length in bytes of the HTTP content. */ length: number; /** true if length is a valid length; otherwise, false. */ returnValue: boolean; }; /** @@ -63593,7 +63478,7 @@ declare namespace Windows { * @param outputStream The output stream to write to. * @return The object representing the asynchronous operation. */ - writeToStreamAsync(outputStream: Windows.Storage.Streams.IOutputStream): Windows.Foundation.IAsyncOperationWithProgress; + writeToStreamAsync(outputStream: Windows.Storage.Streams.IOutputStream): Windows.Foundation.IPromiseWithIAsyncOperationWithProgress; /** Get a collection of content headers set on the IHttpContent . */ headers: Windows.Web.Http.Headers.HttpContentHeaderCollection; }