//[passport](../../../../index.md)/[com.yandex.passport.api](../../index.md)/[PassportTrackId](../index.md)/[Factory](index.md)/[from](from.md)

# from

[passport]\

@NonNull

open fun [from](from.md)(@NonNulluri: Uri): [PassportTrackId](../index.md)

Парсит магический uri и возвращает TrackId

## Throws

| | |
|---|---|
| java.lang.IllegalArgumentException | - если uri не содержит trackId или host не паспортный |
