Taal

ActivityOptions.SetLaunchCookie(ActivityOptions+LaunchCookie) Method

Definition

Sets a launch cookie to track the Activity and task launched as a result of these options.

[Android.Runtime.Register("setLaunchCookie", "(Landroid/app/ActivityOptions$LaunchCookie;)V", "GetSetLaunchCookie_Landroid_app_ActivityOptions_LaunchCookie_Handler", ApiSince=37)]
public virtual void SetLaunchCookie(Android.App.ActivityOptions.LaunchCookie? launchCookie);
[<Android.Runtime.Register("setLaunchCookie", "(Landroid/app/ActivityOptions$LaunchCookie;)V", "GetSetLaunchCookie_Landroid_app_ActivityOptions_LaunchCookie_Handler", ApiSince=37)>]
abstract member SetLaunchCookie : Android.App.ActivityOptions.LaunchCookie -> unit
override this.SetLaunchCookie : Android.App.ActivityOptions.LaunchCookie -> unit

Parameters

launchCookie
ActivityOptions.LaunchCookie

the unique cookie to associate with this launch, or null to clear

Attributes

Remarks

Sets a launch cookie to track the Activity and task launched as a result of these options.

If the launched activity is a trampoline that starts another activity immediately, the cookie will be transferred to the next activity.

Android reference for android.app.ActivityOptions.setLaunchCookie.

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