> For the complete documentation index, see [llms.txt](https://doc.ozforensics.com/oz-knowledge-ru/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://doc.ozforensics.com/oz-knowledge-ru/other/old-docs/mobile-sdk/ios/vypolnenie-proverok.md).

# Выполнение проверок

#### Анализ на сервере

Данные для отправки на анализ находятся в объекте results (см. выше), полученном после съемки и записи видео. Загрузите их на сервер и инициируйте запуск необходимых анализы с помощью [Oz API](/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/api/oz-api.md). См. также [сценарии использования](/oz-knowledge-ru/rukovodstva/rukovodstvo-razrabotchika/api/oz-api/use-cases.md).

Для простого сценария взаимодействия с Oz API можно использовать метод `OZSDK.analyse` как описано ниже.

```objectivec
OZSDK.analyse(
  results: results,
  analyseStates: [.quality],
  fileUploadProgress: { (progress) in
  
  }
) { (resolution, error) in
  
}
```

В блоке `completion` | `resolution` будет содержаться результат назначенного анализа, включающий в себя `status` (статус анализа), `type` (тип анализа) и `folderID` (id папки Oz API).

Для проведения комплексного анализа с видео и фотографиями документов используется метод `OZSDK.documentAnalyse`:

```swift
OZSDK.documentAnalyse(
  documentPhoto: DocumentPhoto(front: frontDocumentURL, back: backDocumentURL),
  results: results,
  scenarioState: { (state) in
  
  }, fileUploadProgress: { (progress) in

  }
) { (folderResolutionStatus, resolutions, error)

}
```

В блоке `resolutions` будет содержаться результат назначенного анализа (аналогично `OZSDK.analyse`), а в `folderResolutionStatus` — общий статус анализов для папки.

И для документов, и для проверки лица вы также можете воспользоваться методом OZSDK.uploadAndAnalyse:

```swift
OZSDK.uploadAndAnalyse(results: results,
                    documentPhoto: DocumentPhoto(front: frontDocumentURL, back: backDocumentURL),
                    analysisTypes: [.quality],
                    metadata: nil,
                    scenarioState: { state in },
                    fileUploadProgress: { progress in }) { status, resolution, error in }) 
```

В блоке `resolution` будет содержаться результат назначенного анализа (аналогично `OZSDK.analyse` и `OZSDK.documentAnalyse`).

#### Анализ на устройстве

Для запуска анализа на устройстве используйте следующие методы.

Biometry

```swift
OZSDK.runOnDeviceBiometryAnalysis(firstResult: firstResult, secondResult: secondResult, completion: { status, error in
//show result
})
```

Liveness

```swift
OZSDK.runOnDeviceLivenessAnalysis(results: results, completion: {status, error in 
//show result
})
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://doc.ozforensics.com/oz-knowledge-ru/other/old-docs/mobile-sdk/ios/vypolnenie-proverok.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
