【问题标题】:Removing Android Activity from stack using nativescript使用 nativescript 从堆栈中删除 Android Activity
【发布时间】:2016-08-27 01:13:23
【问题描述】:

这篇文章准确地解释了我想要做什么,但我正在寻找有关如何在 NativeScript 中执行此操作的帮助。

Removing an activity from the history stack

[已解决]我在这里找到了答案:

https://github.com/NativeScript/nativescript-angular/blob/master/ng-sample/app/examples/router/clear-history-test.ts

【问题讨论】:

  • 请添加代码..到目前为止您尝试过的内容。

标签: android nativescript angular2-nativescript


【解决方案1】:

这是我使用 angular 和 nativescript 的代码解决方案:

// Sign In Page
import { RouterExtensions } from "nativescript-angular/router";

constructor(private _router: RouterExtensions) {}

private onSignInComplete(): void {
    this._router.navigate(["/mainPage"], { clearHistory: true });
}

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2012-06-11
    • 2013-07-03
    • 1970-01-01
    • 1970-01-01
    • 2019-03-20
    • 2012-12-16
    • 2012-12-05
    • 1970-01-01
    相关资源
    最近更新 更多