語言

Intent.FlagActivityRequireDefault 欄位

定義

警告

This constant will be removed in the future version. Use Android.Content.ActivityFlags enum directly instead of this field.

若將 intent 傳入 Context#startActivity Context.startActivity(),則此旗標僅在 intent 解析為單一結果時啟動。

[Android.Runtime.Register("FLAG_ACTIVITY_REQUIRE_DEFAULT", ApiSince=30)]
[System.Obsolete("This constant will be removed in the future version. Use Android.Content.ActivityFlags enum directly instead of this field.", true)]
public const Android.Content.ActivityFlags FlagActivityRequireDefault = 512;
[<Android.Runtime.Register("FLAG_ACTIVITY_REQUIRE_DEFAULT", ApiSince=30)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.ActivityFlags enum directly instead of this field.", true)>]
val mutable FlagActivityRequireDefault : Android.Content.ActivityFlags

欄位值

Value = 512

實作

屬性

備註

若將 intent 傳入 Context#startActivity Context.startActivity(),則此旗標僅在 intent 解析為單一結果時啟動。 若無此結果,或系統選擇器本應顯示,則會拋出 a ActivityNotFoundException 。

Java 文件 android.content.Intent.FLAG_ACTIVITY_REQUIRE_DEFAULT。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於