Language

UnsafeIntentLaunchViolation(Intent) Constructor

Definition

Creates a violation for the specified unsafe intent launch.

[Android.Runtime.Register(".ctor", "(Landroid/content/Intent;)V", "", ApiSince=31)]
public UnsafeIntentLaunchViolation(Android.Content.Intent intent);
[<Android.Runtime.Register(".ctor", "(Landroid/content/Intent;)V", "", ApiSince=31)>]
new Android.OS.Strictmode.UnsafeIntentLaunchViolation : Android.Content.Intent -> Android.OS.Strictmode.UnsafeIntentLaunchViolation

Parameters

intent
Intent

The non-null intent associated with the unsafe launch.

Attributes

Remarks

The constructor retains intent for the Intent property and includes its description in the violation message. Creating this object does not launch the intent.

See the Android implementation of UnsafeIntentLaunchViolation.

Applies to