//[passport](../../../index.md)/[com.yandex.passport.api](../index.md)/[PassportUid](index.md)/[getEnvironment](get-environment.md)

# getEnvironment

[passport]\

@NonNull

abstract fun [getEnvironment](get-environment.md)(): [PassportEnvironment](../-passport-environment/index.md)

Возвращает ненулевый объект паспортного окружения [PassportEnvironment](../-passport-environment/index.md), которому принадлежит uid.

#### Return

Ненулевой объект [PassportEnvironment](../-passport-environment/index.md).

## See also

passport

| | |
|---|---|
| [com.yandex.passport.api.PassportEnvironment](../-passport-environment/index.md) |  |
