语言

ApplicationStartInfo.LaunchModeSingleTop 字段

定义

注意

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

如果目标任务顶部已存在活动的实例,则系统通过调用其 onNewIntent() 方法将意向路由到该实例,而不是创建活动的新实例。

[Android.Runtime.Register("LAUNCH_MODE_SINGLE_TOP", ApiSince=35)]
[System.Obsolete("This constant will be removed in the future version. Use Android.App.ApplicationStartInfoLaunchMode enum directly instead of this field.", true)]
public const Android.App.ApplicationStartInfoLaunchMode LaunchModeSingleTop = 1;
[<Android.Runtime.Register("LAUNCH_MODE_SINGLE_TOP", ApiSince=35)>]
[<System.Obsolete("This constant will be removed in the future version. Use Android.App.ApplicationStartInfoLaunchMode enum directly instead of this field.", true)>]
val mutable LaunchModeSingleTop : Android.App.ApplicationStartInfoLaunchMode

字段值

Value = 1

实现

特性

注解

如果目标任务顶部已存在活动的实例,则系统通过调用其 onNewIntent() 方法将意向路由到该实例,而不是创建活动的新实例。

Android 参考。android.app.ApplicationStartInfo.LAUNCH_MODE_SINGLE_TOP

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于