Skip to content

Commit 0b00943

Browse files
committed
Replacing OS version TBD placeholder with 'in the latest release...'
1 parent 17e9827 commit 0b00943

File tree

4 files changed

+17
-48
lines changed

4 files changed

+17
-48
lines changed

hub/apps/develop/widgets/implement-widget-provider-cs.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ public static Dictionary<string, CompactWidgetInfo> RunningWidgets = new Diction
8080

8181
This example will declare some static strings to define the JSON templates for each widget. For convenience, these templates are stored in the member variables of the **WidgetProvider** class. If you need a general storage for the templates - they can be included as part of the application package: [Accessing Package Files](/windows/uwp/app-resources/uri-schemes#ms-appx-and-ms-appx-web). For information on creating the widget template JSON document, see [Create a widget template with the Adaptive Card Designer](../../design/widgets/widgets-create-a-template.md).
8282

83-
Starting with Windows build [TBD - Build number], apps that implement Windows widgets can customize the header that is displayed for their widget in the Widgets Board, overriding the default presentation. For more information, see [Customize the widget header area](widget-header-customization.md).
83+
In the latest release, apps that implement Windows widgets can customize the header that is displayed for their widget in the Widgets Board, overriding the default presentation. For more information, see [Customize the widget header area](widget-header-customization.md).
8484

8585
> [!NOTE]
86-
> Starting with Windows Build [TBD - Build number], apps that implement Windows widgets can choose to populate the widget content with HTML served from a specified URL instead of supplying content in the Adaptive Card schema format in the JSON payload passed from the provider to the Widgets Board. Widget providers must still provide an Adaptive Card JSON payload, so the implementation steps in this walkthrough are applicable to web widgets. For more information, see [Web widget providers](web-widget-providers.md).
86+
> In the latest release, apps that implement Windows widgets can choose to populate the widget content with HTML served from a specified URL instead of supplying content in the Adaptive Card schema format in the JSON payload passed from the provider to the Widgets Board. Widget providers must still provide an Adaptive Card JSON payload, so the implementation steps in this walkthrough are applicable to web widgets. For more information, see [Web widget providers](web-widget-providers.md).
8787
8888
```csharp
8989
// WidgetProvider.cs

hub/apps/develop/widgets/implement-widget-provider-win32.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ struct WidgetProvider : winrt::implements<WidgetProvider, winrt::Microsoft::Wind
160160
161161
This example will declare some static strings to define the JSON templates for each widget. For convenience, these templates are stored in the local variables declared outside of the **WidgetProvider** class definition. If you need a general storage for the templates - they can be included as part of the application package: [Accessing Package Files](/windows/uwp/app-resources/uri-schemes#ms-appx-and-ms-appx-web). For information on creating the widget template JSON document, see [Create a widget template with the Adaptive Card Designer](../../design/widgets/widgets-create-a-template.md).
162162
163-
Starting with Windows build [TBD - Build number], apps that implement Windows widgets can customize the header that is displayed for their widget in the Widgets Board, overriding the default presentation. For more information, see [Customize the widget header area](widget-header-customization.md).
163+
In the latest release, apps that implement Windows widgets can customize the header that is displayed for their widget in the Widgets Board, overriding the default presentation. For more information, see [Customize the widget header area](widget-header-customization.md).
164164
165165
> [!NOTE]
166166
> Starting with Windows Build [TBD - Build number], apps that implement Windows widgets can choose to populate the widget content with HTML served from a specified URL instead of supplying content in the Adaptive Card schema format in the JSON payload passed from the provider to the Widgets Board. Widget providers must still provide an Adaptive Card JSON payload, so the implementation steps in this walkthrough are applicable to web widgets. For more information, see [Web widget providers](web-widget-providers.md).

hub/apps/develop/widgets/web-widget-providers.md

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.localizationpriority: medium
88

99
# Web widget providers
1010

11-
Starting with Windows Build [TBD - Build number], apps that implement Windows widgets can choose to populate the widget content with HTML served from a remote URL. Previously, the widget content could only be supplied in the Adaptive Card schema format in the JSON payload passed from the provider to the Widgets Board. Because web widget providers must still provide an Adaptive Card JSON payload, you should follow the steps for implementing a widget provider in [Implement a widget provider in a C# Windows App](implement-widget-provider-cs.md) or [Implement a widget provider in a win32 app (C++/WinRT)](implement-widget-provider-win32.md).
11+
In the latest release, apps that implement Windows widgets can choose to populate the widget content with HTML served from a remote URL. Previously, the widget content could only be supplied in the Adaptive Card schema format in the JSON payload passed from the provider to the Widgets Board. Because web widget providers must still provide an Adaptive Card JSON payload, you should follow the steps for implementing a widget provider in [Implement a widget provider in a C# Windows App](implement-widget-provider-cs.md) or [Implement a widget provider in a win32 app (C++/WinRT)](implement-widget-provider-win32.md).
1212

1313
## Specify the content URL
1414

@@ -44,21 +44,21 @@ In the implementation of the **OnResourceRequested** method, widget providers ca
4444
```csharp
4545
async void IWidgetResourceProvider.OnResourceRequested(WidgetResourceRequestedArgs args)
4646
{
47-
if (args.Request.Uri == "Https://contoso.com/logo-image")
48-
{
49-
var deferral = args.GetDeferral();
47+
var deferral = args.GetDeferral();
5048

51-
Func<Task> asyncLambda = async () =>
49+
if (args.Request.Uri.Length > 0)
50+
{
51+
if (args.Request.Uri == "https://contoso.com/logo-image")
5252
{
5353
string fullPath = Windows.ApplicationModel.Package.Current.InstalledPath + "/Assets/image.png";
5454
var file = await StorageFile.GetFileFromPathAsync(fullPath);
55-
var response = new WidgetResourceResponse(RandomAccessStreamReference.CreateFromFile(file), "", 200);
55+
var response = new WidgetResourceResponse(RandomAccessStreamReference.CreateFromFile(file), "OK", 200);
56+
response.Headers.Add("Content-Type", "image/png");
5657
args.Response = response;
57-
};
58-
await asyncLambda();
59-
60-
deferral.Complete();
58+
}
6159
}
60+
61+
deferral.Complete();
6262
}
6363
```
6464

@@ -84,6 +84,9 @@ var message = $"{{ \"current_location\": \"{ location }\" }}";
8484
WidgetManager.GetDefault().SendMessageToContent("Weather_Widget", message);
8585
```
8686

87+
## Limitations and requirements
88+
89+
* This feature is available only to users in the European Economic Area (EEA). In the EEA, installed apps that implement a feed provider can provide content feed in the Widgets Board.
8790

8891

8992

hub/apps/develop/widgets/widget-header-customization.md

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ ms.localizationpriority: medium
88

99
# Customize the widget header area
1010

11-
Starting with Windows build [TBD - Build number], apps that implement Windows widgets can customize the header that is displayed for their widget in the Widgets Board, overriding the default presentation. Header customization is implemented in the Adaptive Card payload you pass to the OS from your widget provider, so the steps are the same regardless of the language your widget provider is implemented in. For a walkthrough of creating a widget provider, see [Implement a widget provider in a C# Windows App](implement-widget-provider-cs.md) or [Implement a widget provider in a win32 app (C++/WinRT)](implement-widget-provider-win32.md).
11+
In the latest release, apps that implement Windows widgets can customize the header that is displayed for their widget in the Widgets Board, overriding the default presentation. Header customization is implemented in the Adaptive Card payload you pass to the OS from your widget provider, so the steps are the same regardless of the language your widget provider is implemented in. For a walkthrough of creating a widget provider, see [Implement a widget provider in a C# Windows App](implement-widget-provider-cs.md) or [Implement a widget provider in a win32 app (C++/WinRT)](implement-widget-provider-win32.md).
1212

1313
## The default header
1414

@@ -84,37 +84,3 @@ The following example demonstrates setting an empty header.
8484
}
8585
```
8686

87-
## Override the header with Adaptive Card content
88-
89-
You can overwrite the header with UI components defined using the Adaptive Card schema. The specified content will be rendered within the 48px high header area.
90-
91-
The following example uses Adaptive Card components to render a combo box selector in the widget header.
92-
93-
```json
94-
{
95-
"type": "AdaptiveCard",
96-
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
97-
"version": "1.6",
98-
"body": [
99-
...
100-
] ,
101-
"header": [
102-
{
103-
"type": "Input.ChoiceSet",
104-
"id": "WeatherSwitcher",
105-
"choices": [
106-
{
107-
"title": "Redmond",
108-
"value": "Redmond"
109-
},
110-
{
111-
"title": "Bellevue",
112-
"value": "Bellevue"
113-
}
114-
],
115-
"placeholder": "Pick location",
116-
"value": "Bellevue"
117-
}
118-
]
119-
}
120-
```

0 commit comments

Comments
 (0)