Android Guides | Samples

Android.Content.Intent.SetFlags Method

Set special flags controlling how this intent is handled.

Syntax

[Android.Runtime.Register("setFlags", "(I)Landroid/content/Intent;", "GetSetFlags_IHandler")]
public virtual Intent SetFlags ([Android.Runtime.GeneratedEnum] ActivityFlags flags)

See Also

Parameters

flags
The desired flags.

Remarks

Set special flags controlling how this intent is handled. Most values here depend on the type of component being executed by the Intent, specifically the FLAG_ACTIVITY_* flags are all for use with Context.StartActivity(Intent) and the FLAG_RECEIVER_* flags are all for use with Context.SendBroadcast(Intent).

See the Tasks and Back Stack documentation for important information on how some of these options impact the behavior of your application.

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1