Compartir a través de


Intent.FlagActivityRequireDefault Field

Definition

Caution

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

If set in an intent passed to Context#startActivity Context.startActivity(), this flag will only launch the intent if it resolves to a single result.

[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

Field Value

Value = 512

Implements

Attributes

Remarks

If set in an intent passed to Context#startActivity Context.startActivity(), this flag will only launch the intent if it resolves to a single result. If no such result exists or if the system chooser would otherwise be displayed, an ActivityNotFoundException will be thrown.

Java documentation for android.content.Intent.FLAG_ACTIVITY_REQUIRE_DEFAULT.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to