has-parent-session.md 858 Bytes
Newer Older
MickeyMoz's avatar
MickeyMoz committed
1
2
3
4
[android-components](../../index.md) / [mozilla.components.browser.session](../index.md) / [Session](index.md) / [hasParentSession](./has-parent-session.md)

# hasParentSession

MickeyMoz's avatar
MickeyMoz committed
5
`val hasParentSession: `[`Boolean`](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) [(source)](https://github.com/mozilla-mobile/android-components/blob/master/components/browser/session/src/main/java/mozilla/components/browser/session/Session.kt#L511)
MickeyMoz's avatar
MickeyMoz committed
6
7
8
9
10
11
12

Returns true if this [Session](index.md) has a parent [Session](index.md).

A [Session](index.md) can have a parent [Session](index.md) if one was provided when calling [SessionManager.add](../-session-manager/add.md). The parent
[Session](index.md) is usually the [Session](index.md) the new [Session](index.md) was opened from - like opening a new tab from a link
context menu ("Open in new tab").