Intent.UriAndroidAppScheme フィールド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
注意事項
This constant will be removed in the future version. Use Android.Content.IntentUriType enum directly instead of this field.
#toUriと#parseUriで使用するフラグ: URI 文字列には常に "android-app:" スキームがあります。
[Android.Runtime.Register("URI_ANDROID_APP_SCHEME", ApiSince=22)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Content.IntentUriType enum directly instead of this field.", true)]
public const Android.Content.IntentUriType UriAndroidAppScheme = 2;
[<Android.Runtime.Register("URI_ANDROID_APP_SCHEME", ApiSince=22)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.IntentUriType enum directly instead of this field.", true)>]
val mutable UriAndroidAppScheme : Android.Content.IntentUriType
フィールド値
Value = 2実装
- 属性
注釈
#toUriと#parseUriで使用するフラグ: URI 文字列には常に "android-app:" スキームがあります。 これは、特定のパッケージ名に配信される http/https URI の場合の形式が単純な #URI_INTENT_SCHEME のバリエーションです。 形式は次のとおりです。
android-app://{package_id}[/{scheme}[/{host}[/{path}]]][#Intent;{...}]
このスキームでは、 package_id のみが必要です。 ホストを含める場合は、スキームも含める必要があります。パスを含む場合は、ホストとスキームの両方も必要です。 最後の #Intent;フラグメントは、スキーム、ホスト、またはパスなしで使用できます。 基本意図は常に明示的なパッケージ名を持つため、これは #setSelectorを持つ意図では使用できないことに注意してください。
このスキームを Intent オブジェクトにマップする方法の例を次に示します。
<table border="2" width="85%" align="center" frame="hsides" rules="rows"><colgroup align="left" /><colgroup align="left " /><thead><tr><th>URI</th><th>Intent</th></tr></thead>
<tbody><tr><td>android-app://com.example.app</td><td><table style="margin:0;border:0;cellpadding:0;cellspacing:0"><tr><td>Action: </td><td>#ACTION_MAIN</td></tr><tr><td>Package: </td>< td>com.example.app</td></tr></table></td></tr><tr><td>android-app://com.example.app/http/example.com</td><td><table style="margin:0;border:0;cellpadding:0;cellspacing:0"><tr><td>Action: </td><td>#ACTION_VIEW</td></tr><tr><td>Data: </td><td>http://example.com/</td></tr><tr ><td>Package: </td><td>com.example.app</td></tr></table></td></tr><tr><td>android-app://com.example.app/http/example.com/foo?1234</td><td><table style="margin:0;border:0;cellpadding:0;cellspacing:0"><tr><td>Action: </td><td>#ACTION_VIEW</td></tr><tr><td>Data: </td><td>http://example.com/foo?1234</td></tr><tr ><td>Package: </td><td>com.example.app</td></tr></table></td></tr><tr><td>android-app://com.example.app/<br />#Intent;action=com.example.MY_ACTION;end</td><td><table style="margin:0;border:0;cellpadding:0;cellspacing:0"><tr><td>Action: </td><td>com.example.MY_ACTION</td></tr><tr><td>Package: </td><>com.example.app</td></tr></table></td></tr><tr><td>android-app://com.example.app/http/example.com/foo?1234<br />#Intent;action=com.example.MY_ACTION;end</td><td><table style="margin:0;border:0;cellpadding:0;cellspacing:0"><tr><td>Action: </td><td>com.example.MY_ACTION</td></tr><tr><td>Data: </td><td>http://example.com/foo?1234</td></tr><tr><tr >Package: </td><td>com.example.app</td></tr></table></td></tr><tr><td>android-app://com.example.app/<br />#Intent;action=com.example.MY_ACTION;<br />i.some_int=100;S.some_str=hello;end</td><td><table border="style="margin:0" ><tr><td>Action: </td><td>com.example.MY_ACTION</td></tr><tr><td>Package: </td><td>com.example.app</td><><trtr><td>Extras: </td><td>some_int=(int)100<br />some_str=(String)hello</td></tr></table></td></tr></tbody></table>
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。