MBAE の非推奨に関する警告
Important
Windows 10 バージョン 1803 以降では、MBAE アプリ エクスペリエンスは MO UWP アプリに置き換えられました。 MO UWP アプリの詳細については、「UWP モバイル ブロードバンド アプリの」を参照してください。
AutoplayHandler 要素は、ユーザーがデバイスをプラグインするときに推奨される自動再生アクションとして表示される UWP デバイス アプリを指定します。
Usage
<AutoplayHandler>
child elements
</AutoplayHandler>
Attributes
属性はありません。
Child elements
| Element | Description |
|---|---|
アプリのパッケージ ID (名前と発行元) を指定します。 |
|
アプリのアプリケーション ID を指定します。 |
|
アプリが登録する動詞を指定します。 |
|
自動再生イベントがデバイス イベントかコンテンツ イベントかを指定します。 自動再生は、デバイスの種類を決定し、ボリューム以外のデバイスのデバイス イベントまたはボリューム デバイスのコンテンツ イベントを発生させます。 |
|
登録されているアプリに対して自動再生を有効にするかどうかを指定します。 |
Parent elements
| Element | Description |
|---|---|
ユーザーがデバイスを接続するときに、推奨される自動再生アクションとして表示されるアプリを指定します。 |
XSD
<xs:element name="AutoplayHandler" type="tns:AutoplayHandlerType" />
<xs:complexType name="AutoplayHandlerType">
<xs:sequence>
<xs:element name="PackageIdentity" type="tns:PackageIdentityType" />
<xs:element name="Application" type="tns:ApplicationType" />
<xs:element name="Verb" type="tns:VerbType" />
<xs:element name="AutoplayType" type="tns:AutoplayTypeType" />
<xs:element name="EnableAutoPlayForRegisteredApps" type ="xs:boolean" default="false" minOccurs="0" />
<xs:any namespace="##other" processContents="lax" minOccurs="0" maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
Remarks
The structure for the PackageIdentity and Application elements are identical with the Application Manifest structure, so copy the elements from the application's manifest.
指定した UWP デバイス アプリは、デバイス メタデータに AutoplayHandler 要素を含めるだけでなく、イベントのアプリケーション マニフェストに宣言を追加して、自動再生イベントにも登録する必要があります。 自動再生は、アプリの宣言を認識し、そのイベントに応答するためにユーザーが実行できるアクションの一覧に含めます。
Only the package listed in the DeviceCompanionApplications value in the SoftwareInfo.xml file will be downloaded as part of the device installation. If the LaunchApplicationOnDeviceConnect element value is from a different package, Windows does not know whether it will actually be on the user’s device. 推奨されるアプリケーションがユーザーのデバイスにない場合、ユーザーには選択肢が表示されません。
Even if the application is the same as the DeviceCompanionApplications entry, it may not always appear in the AutoPlay list. ユーザーがインターネットに接続されていない場合、またはコンパニオン アプリケーションのダウンロードに失敗した場合は、一覧に表示されません。 ただし、ユーザーがアプリケーションを取得すると、次にデバイスに接続するときに、[新しいオプションを使用できる] 自動再生ダイアログ ボックスが表示されます。
AutoplayHandler 要素は省略可能です。