Merge pull request #8475 from Strato/patch-1

Added some missing properties
This commit is contained in:
Mohamed Hegazy
2016-06-22 16:43:26 -07:00
committed by GitHub

164
winrt/winrt.d.ts vendored
View File

@@ -8201,6 +8201,7 @@ declare namespace Windows {
getDataPlanStatus(): Windows.Networking.Connectivity.DataPlanStatus;
getLocalUsage(StartTime: Date, EndTime: Date): Windows.Networking.Connectivity.DataUsage;
getLocalUsage(StartTime: Date, EndTime: Date, States: Windows.Networking.Connectivity.RoamingStates): Windows.Networking.Connectivity.DataUsage;
getSignalBars(): Windows.Foundation.IReference<number>;
}
export class ConnectionCost implements Windows.Networking.Connectivity.IConnectionCost {
approachingDataLimit: boolean;
@@ -8267,6 +8268,7 @@ declare namespace Windows {
getDataPlanStatus(): Windows.Networking.Connectivity.DataPlanStatus;
getLocalUsage(StartTime: Date, EndTime: Date): Windows.Networking.Connectivity.DataUsage;
getLocalUsage(StartTime: Date, EndTime: Date, States: Windows.Networking.Connectivity.RoamingStates): Windows.Networking.Connectivity.DataUsage;
getSignalBars(): Windows.Foundation.IReference<number>;
}
export class LanIdentifier implements Windows.Networking.Connectivity.ILanIdentifier {
infrastructureId: Windows.Networking.Connectivity.LanIdentifierData;
@@ -11344,15 +11346,18 @@ declare namespace Windows {
}
export interface ILauncherOptions {
contentType: string;
desiredRemainingView: Windows.UI.ViewManagement.ViewSizePreference;
displayApplicationPicker: boolean;
fallbackUri: Windows.Foundation.Uri;
preferredApplicationDisplayName: string;
preferredApplicationPackageFamilyName: string;
treatAsUntrusted: boolean;
uI: Windows.System.LauncherUIOptions;
}
export class LauncherOptions implements Windows.System.ILauncherOptions {
contentType: string;
desiredRemainingView: Windows.UI.ViewManagement.ViewSizePreference;
displayApplicationPicker: boolean;
fallbackUri: Windows.Foundation.Uri;
preferredApplicationDisplayName: string;
@@ -11594,87 +11599,96 @@ declare namespace Windows {
}
declare namespace Windows {
export module UI {
export module ViewManagement {
export enum ApplicationViewState {
fullScreenLandscape,
filled,
snapped,
fullScreenPortrait,
}
export module ViewManagement {
export enum ViewSizePreference {
default = 0,
useLess = 1,
useHalf = 2,
useMore = 3,
useMinimum = 4,
useNone = 5
}
export enum ApplicationViewState {
fullScreenLandscape,
filled,
snapped,
fullScreenPortrait,
}
/**
* Defines an instance of a window (app view) and the information that describes it.
**/
export class ApplicationView {
/**
* Gets the window (app view) for the current app.
**/
static getForCurrentView(): ApplicationView;
/**
* Defines an instance of a window (app view) and the information that describes it.
* Attempts to unsnap a previously snapped app. This call will only succeed when the app is running in the foreground.
**/
export class ApplicationView {
/**
* Gets the window (app view) for the current app.
**/
static getForCurrentView(): ApplicationView;
/**
* Attempts to unsnap a previously snapped app. This call will only succeed when the app is running in the foreground.
**/
static tryUnsnap(): boolean;
/**
* Gets the state of the current app view.
**/
static value: Windows.UI.ViewManagement.ApplicationViewState;
/**
* Indicates whether the app terminates when the last window is closed.
**/
static terminateAppOnFinalViewClose: boolean;
/**
* Gets the current orientation of the window (app view) with respect to the display.
**/
orientation: ApplicationViewOrientation;
/**
* Gets or sets the displayed title of the window.
**/
title: string;
/**
* Gets or sets whether screen capture is enabled for the window (app view).
**/
isScreenCaptureEnabled: boolean;
/**
* Gets whether the window (app view) is on the Windows lock screen.
**/
isOnLockScreen: boolean;
/**
* Gets whether the window(app view) is full screen or not.
**/
isFullScreen: boolean;
/**
* Gets the current ID of the window (app view) .
**/
id: number;
/**
* Gets whether the current window (app view) is adjacent to the right edge of the screen.
**/
adjacentToRightDisplayEdge: boolean;
/**
* Gets whether the current window (app view) is adjacent to the left edge of the screen.
**/
adjacentToLeftDisplayEdge: number;
/**
* Gets the title bar of the app.
**/
titleBar: ApplicationViewTitleBar;
}
static tryUnsnap(): boolean;
/**
* Defines the set of display orientation modes for a window (app view).
* Gets the state of the current app view.
**/
static value: Windows.UI.ViewManagement.ApplicationViewState;
/**
* Indicates whether the app terminates when the last window is closed.
**/
static terminateAppOnFinalViewClose: boolean;
/**
* Gets the current orientation of the window (app view) with respect to the display.
**/
orientation: ApplicationViewOrientation;
/**
* Gets or sets the displayed title of the window.
**/
title: string;
/**
* Gets or sets whether screen capture is enabled for the window (app view).
**/
isScreenCaptureEnabled: boolean;
/**
* Gets whether the window (app view) is on the Windows lock screen.
**/
isOnLockScreen: boolean;
/**
* Gets whether the window(app view) is full screen or not.
**/
isFullScreen: boolean;
/**
* Gets the current ID of the window (app view) .
**/
id: number;
/**
* Gets whether the current window (app view) is adjacent to the right edge of the screen.
**/
adjacentToRightDisplayEdge: boolean;
/**
* Gets whether the current window (app view) is adjacent to the left edge of the screen.
**/
adjacentToLeftDisplayEdge: number;
/**
* Gets the title bar of the app.
**/
titleBar: ApplicationViewTitleBar;
}
/**
* Defines the set of display orientation modes for a window (app view).
**/
export enum ApplicationViewOrientation {
landscape,
portrait